# Installer defaultbrowser avec Homebrew, MacPorts, Nix

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de defaultbrowser pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install defaultbrowser
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install defaultbrowser
```

  Preuve: 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
```

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

## Faits du paquet

- **Clé du paquet:** brew:defaultbrowser
- **Gestionnaire de paquets:** Homebrew
- **Version:** 1.1
- **Résumé source:** Command-line tool for getting & setting the default browser
- **Page d'accueil:** <https://github.com/kerma/defaultbrowser>
- **Dépôt:** <https://github.com/kerma/defaultbrowser>
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- defaultbrowser (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 1.1
## Historique du projet et usages

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

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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.

### Sources

- <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>


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Autres enregistrements de gestionnaires de paquets

- 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)


## Sources

- 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
