# has を Homebrew, Nix でインストール

has のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:has
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install has
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#has
```

  証拠: nixpkgs package indexes: pkgs/by-name/ha/has/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:has
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.5.2
- **ソース概要:** Checks presence of various command-line tools and their versions on the path
- **ホームページ:** <https://github.com/kdabir/has>
- **リポジトリ:** <https://github.com/kdabir/has>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- has (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.5.2
## プロジェクトの歴史と使われ方

has is Kiran Dabir's dependency-free Bash utility for checking whether named command-line tools are on `PATH` and reporting their installed versions.

### プロジェクトの歴史

The official GitHub repository was created in February 2014. The project stayed centered on one portable Bash script while accumulating tool-specific version detection, readable success and failure output, meaningful exit status, and project-local `.hasrc` files.

A tagged GitHub release series is visible from v1.2.0 in 2018 through v1.5.2 in August 2025. The README continues to present direct download and execution as first-class options alongside package managers.

### 採用の歴史

has spread through several conventions favored by shell users: direct `curl` execution, a copied script on `PATH`, Git installation, Homebrew, asdf, and mise. Supplied metadata also records Homebrew and Nix packages.

### 使われ方

Users run commands such as `has node npm java git`; the output lists detected versions, and the exit status counts missing commands. A project can commit one tool name per line in `.hasrc`, letting `has` serve as an immediately readable environment preflight for developers and scripts.

### パッケージ好きにとっての重要性

has is a strong example of the single-file shell package: no runtime beyond Bash, directly inspectable source, multiple install methods, and behavior useful both interactively and in automation. A committed `.hasrc` also acts as a lightweight executable declaration of a repository's external toolchain.

### タイムライン

- 2014: The official GitHub repository is created.
- 2018: v1.2.0 begins the visible GitHub release series.
- 2025: v1.5.2 is released in August.

### Related projects

- asdf-has packages has as an asdf plugin.
- mise can install has through its version-manager workflow.

### ソース

- <https://api.github.com/repos/kdabir/has>
- <https://github.com/kdabir/has#readme>
- <https://github.com/kdabir/has/releases>
- source_facts.package-manager


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ./.hasrc
## 他のパッケージマネージャ記録

- Nix - has: normalized package name match | nixpkgs package indexes: pkgs/by-name/ha/has/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/has.yml](https://github.com/mxcl/pkgdb/blob/main/combined/has.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
