# defaultbrowser mit Homebrew, MacPorts, Nix installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für defaultbrowser in AI-Agent-Workflows.

## Installation

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

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install defaultbrowser
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install defaultbrowser
```

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

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

## Paketfakten

- **Paketschlüssel:** brew:defaultbrowser
- **Paketmanager:** Homebrew
- **Version:** 1.1
- **Quellzusammenfassung:** Command-line tool for getting & setting the default browser
- **Homepage:** <https://github.com/kerma/defaultbrowser>
- **Repository:** <https://github.com/kerma/defaultbrowser>
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- defaultbrowser (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 1.1
## Projektgeschichte und Nutzung

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

### Projektgeschichte

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.

### Adoptionsgeschichte

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.

### Wie es verwendet wird

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.

### Warum Paket-Nerds sich dafür interessieren

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.

### Zeitleiste

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

### Quellen

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


## Sicherheitshinweise

narrow executable package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- narrow executable package without higher-risk signals

## Andere Paketmanager-Einträge

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


## Quellen

- 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
