macOS
brew install defaultbrowserlocal Homebrew formula metadata
sudo port install defaultbrowserMacPorts ports tree · sysutils/defaultbrowser/Portfile · source: api.github.com
brew
Command-line tool for getting & setting the default browser. Version 1.1 via Homebrew; verified from local package data.
install
brew install defaultbrowserlocal Homebrew formula metadata
sudo port install defaultbrowserMacPorts ports tree · sysutils/defaultbrowser/Portfile · source: api.github.com
nix profile install nixpkgs#defaultbrowsernixpkgs package indexes · pkgs/by-name/de/defaultbrowser/package.nix · source: api.github.com
overview
Command-line tool for getting & setting the default browser
history
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
defaultbrowser | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/kerma/defaultbrowser
install metadata
| Package key | brew:defaultbrowser |
|---|---|
| Version | 1.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/defaultbrowser |
| Homepage | https://github.com/kerma/defaultbrowser |
| Repository | https://github.com/kerma/defaultbrowser |
| Upstream docs | https://github.com/kerma/defaultbrowser#readme |
| License | MIT |
| Source archive | https://github.com/kerma/defaultbrowser/archive/refs/tags/1.1.tar.gz |
| Bottle | available (on arm64_big_sur, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | defaultbrowser |
| Version Scheme | 0 |
| Revision | 0 |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
defaultbrowser
nix profile install nixpkgs#defaultbrowserdefaultbrowser
sudo port install defaultbrowsersource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.