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

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

## インストール

```sh
sudo av install brew:semgrep
```

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

### macOS

- Homebrew (100%):

```sh
brew install semgrep
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install semgrep
```

  証拠: MacPorts ports tree: devel/semgrep/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#semgrep
```

  証拠: nixpkgs package indexes: semgrep from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

## パッケージ情報

- **パッケージキー:** brew:semgrep
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.172.0
- **ソース概要:** Easily detect and prevent bugs and anti-patterns in your codebase
- **ホームページ:** <https://semgrep.dev>
- **リポジトリ:** <https://github.com/semgrep/semgrep>
- **最終更新:** 2026-07-30T02:00:18Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- pysemgrep (エイリアス)
- semgrep (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.172.0

## セキュリティノート

narrow executable package without higher-risk signals.

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

## 他のパッケージマネージャ記録

- Nix - semgrep: normalized package name match | nixpkgs package indexes: semgrep from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- MacPorts - semgrep: normalized package name match | MacPorts ports tree: devel/semgrep/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
