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

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

## インストール

```sh
sudo av install brew:defaultbrowser
```

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

### macOS

- Homebrew (100%):

```sh
brew install defaultbrowser
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install defaultbrowser
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#defaultbrowser
```

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

## パッケージ情報

- **パッケージキー:** brew:defaultbrowser
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.1
- **ソース概要:** Command-line tool for getting & setting the default browser
- **ホームページ:** <https://github.com/kerma/defaultbrowser>
- **リポジトリ:** <https://github.com/kerma/defaultbrowser>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- defaultbrowser (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

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

defaultbrowser is a small macOS command-line utility for listing and changing the system default web browser, specifically the HTTP handler.

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

The README presents defaultbrowser as a macOS X tool built around the macOS Launch Services API. Its scope is intentionally narrow: run without arguments to list browser handlers and run with a browser identifier to set the default.

The repository has tagged commits for v1.0 in 2017 and 1.1 in 2018, matching the tool's stable, low-churn nature.

### 採用の歴史

defaultbrowser is packaged by Homebrew, which fits its audience: Mac users and automation scripts that need a terminal-friendly way to change a desktop preference normally managed through system settings.

### 使われ方

The common usage is direct and scriptable: `defaultbrowser` shows available HTTP handlers and the current default, while commands such as `defaultbrowser chrome` set the default browser.

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

defaultbrowser is a classic package-manager utility because it wraps a platform preference in one tiny CLI. It is useful in dotfiles, setup scripts, and fleet/bootstrap workflows where opening a GUI preferences pane would be the wrong interface.

### タイムライン

- 2017: v1.0 tagged commit.
- 2018: 1.1 tagged commit.
- 2026: Homebrew continues to publish the formula.

### Related projects

- The README points to the macOS Launch Services API as the underlying platform facility and to a separate bash-completion project for shell integration.

### ソース

- <https://github.com/kerma/defaultbrowser>
- <https://github.com/kerma/defaultbrowser/commit/8d77a3caf7ac52226608fa30a8ce02549782465d>
- <https://github.com/kerma/defaultbrowser/commit/dba87e7d8764ea24502d27da7a4c80c3475b4f25>
- <https://formulae.brew.sh/formula/defaultbrowser>


## セキュリティノート

narrow executable package without higher-risk signals.

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

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

- Nix - defaultbrowser: normalized package name match | nixpkgs package indexes: pkgs/by-name/de/defaultbrowser/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - defaultbrowser: normalized package name match | MacPorts ports tree: sysutils/defaultbrowser/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/defaultbrowser.yml](https://github.com/mxcl/pkgdb/blob/main/combined/defaultbrowser.yml)


## ソース

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