This guide covers how to use stout for common package management tasks.
Before using stout for the first time, or to get the latest package information:
stout updateThis downloads the latest formula index (~3MB) containing metadata for 8000+ packages.
Search for packages by name or description:
# Basic search
stout search json
# Search with limit
stout search json --limit 10
# Search for exact name
stout search wgetExample output:
Found 20 formulas:
jq 1.7.1 Lightweight and flexible command-line JSON processor
json-c 0.18 JSON parser for C
fx 35.0.0 Terminal JSON viewer
gron 0.7.1 Make JSON greppable
...
Use 'stout info <formula>' for details
Get detailed information about a package:
stout info jqExample output:
jq 1.7.1
Lightweight and flexible command-line JSON processor
Homepage: https://jqlang.github.io/jq/
License: MIT
Tap: homebrew/core
Dependencies:
└── oniguruma (runtime)
Bottles:
✓ arm64_sonoma ✓ arm64_ventura ✓ x86_64_linux ...
Installed: No
Install one or more packages:
# Install a single package
stout install jq
# Install multiple packages
stout install jq yq gron
# Install with verbose output
stout install -v wgetstout will:
- Resolve all dependencies
- Download bottles in parallel
- Extract to Cellar
- Create symlinks
View all installed packages:
# List all installed packages
stout list
# List only explicitly installed (not dependencies)
stout list --requestedRemove installed packages:
# Uninstall a package
stout uninstall jq
# Uninstall multiple packages
stout uninstall jq yq gronUpgrade installed packages to latest versions:
# Upgrade all packages
stout upgrade
# Upgrade specific packages
stout upgrade jq wgetCheck if your system is properly configured:
stout doctorThis checks:
- stout data directory
- Configuration file
- Formula index
- Homebrew prefix and Cellar
- Installed packages state
- Homebrew drift
- Unrelocated placeholders
- Code signatures (macOS)
These options work with any command:
-v, --verbose Enable verbose output
-q, --quiet Suppress output
-h, --help Print help
-V, --version Print versionstout install [OPTIONS] <PACKAGES>...
Arguments:
<PACKAGES>... Packages to install
Options:
-f, --force Force reinstall if already installed
-n, --dry-run Show what would be installed
--build-from-source Build from source instead of using bottles
-v, --verbose Enable verbose outputstout uninstall [OPTIONS] <PACKAGES>...
Arguments:
<PACKAGES>... Packages to uninstall
Options:
-f, --force Force uninstall even if depended on
-v, --verbose Enable verbose outputstout search [OPTIONS] <QUERY>
Arguments:
<QUERY> Search query
Options:
-l, --limit <N> Maximum results to show (default: 20)stout info <FORMULA>
Arguments:
<FORMULA> Formula namestout list [OPTIONS]
Options:
--requested Show only explicitly installed packages
--deps Show only packages installed as dependencies
--versions Show version information
--source <SRC> Filter by source: stout, brew, unknown
--pinned Show only pinned packagesThe --source flag filters packages by who installed them:
stout- packages installed via stoutbrew- packages installed via Homebrew (imported)unknown- packages with no source recorded
stout update [OPTIONS]
Options:
-f, --force Force update even if recently updatedSynchronize stout state with Homebrew Cellar and Caskroom:
stout sync [OPTIONS]
Options:
-n, --dry-run Show what would change without modifying state
-y, --yes Apply all changes without prompting
-v, --verbose Show detailed outputstout sync detects drift between stout's tracked packages and what's actually in Homebrew's Cellar/Caskroom:
- Packages in Homebrew but not tracked → added to state
- Packages tracked but not in Homebrew → removed from state
- Version changes → updated in state
Import existing Homebrew packages into stout's tracking:
stout import [OPTIONS] [PACKAGES]...
Arguments:
[PACKAGES]... Specific packages to import (default: all untracked)
Options:
-n, --dry-run Show what would be imported without modifying state
--overwrite Re-import packages already tracked by stout
-v, --verbose Show detailed output for each packageWhen importing, stout also relocates Homebrew placeholders (paths like /opt/homebrew/Cellar/...) to work with stout's prefix.
stout upgrade [OPTIONS] [PACKAGES]...
Arguments:
[PACKAGES]... Specific packages to upgrade (default: all)
Options:
-n, --dry-run Show what would be upgradedstout doctor [OPTIONS]
Options:
--fix Automatically fix issues that can be repairedChecks system health and configuration:
- stout data directory
- Configuration file
- Formula index
- Homebrew prefix and Cellar
- Installed packages state
- Homebrew drift (packages in Cellar/Caskroom not tracked by stout)
- Unrelocated Homebrew placeholders
- Code signatures on all Mach-O binaries (macOS)
Use --fix to automatically run sync, relocate unresolved placeholders,
re-sign binaries with invalid signatures, and reinstall corrupted packages.
stout completions <SHELL>
Arguments:
<SHELL> Shell type [bash, zsh, fish, elvish, powershell]Show packages with available updates:
stout outdated [OPTIONS] [PACKAGES]...
Arguments:
[PACKAGES]... Specific packages to check (default: all)
Options:
-v, --verbose Show detailed version info
--json Output as JSON
--greedy Include auto-updated packagesRemove packages that were installed as dependencies but are no longer needed:
stout autoremove [OPTIONS]
Options:
-n, --dry-run Show what would be removed without removingShow dependencies for a package:
stout deps [OPTIONS] <FORMULA>
Arguments:
<FORMULA> Formula to show dependencies for
Options:
--tree Show dependencies as a tree
--graph Output as DOT graph format (pipe to `dot -Tpng`)
--json Output as JSON
-f, --format Output format (list, tree, graph, json)
-a, --all Include all dependency types
--installed Only show installed dependencies
--include-build Include build dependencies
--include-test Include test dependencies
--include-optional Include optional dependencies
-n, --count Show only the dependency countExample DOT graph output:
stout deps --graph jq | dot -Tpng -o deps.pngShow packages that depend on a given package (reverse dependencies):
stout uses [OPTIONS] <FORMULA>
Arguments:
<FORMULA> Formula to find dependents of
Options:
--recursive Show recursive dependents
--installed Only show installed dependentsShow why a package is installed (reverse dependency chain):
stout why [OPTIONS] <FORMULA>
Arguments:
<FORMULA> Formula to find the installation reason for
Options:
--json Output as JSON
-a, --all Show all dependency paths (not just shortest)Example output:
jq is installed because:
● ripgrep (requested)
└─▶ oniguruma depends on
└─▶ jq
Show package version history:
stout history [OPTIONS] [FORMULA]
Arguments:
[FORMULA] Formula to show history for (omit for all packages)
Options:
--json Output as JSON
-n, --limit Show only the last N entriesRollback a package to a previous version:
stout rollback [OPTIONS] <FORMULA>
Arguments:
<FORMULA> Formula to rollback
Options:
-v, --version Rollback to a specific version (default: previous)
-n, --dry-run Show what would be doneSwitch between installed versions of a package:
stout switch [OPTIONS] <FORMULA> <VERSION>
Arguments:
<FORMULA> Formula to switch
<VERSION> Version to switch to
Options:
-n, --dry-run Show what would be doneOpen a package's homepage in your default browser:
stout home <FORMULA>
Arguments:
<FORMULA> Formula whose homepage to openPin a package to prevent it from being upgraded:
stout pin <FORMULA>
Arguments:
<FORMULA> Formula to pinUnpin a package to allow it to be upgraded:
stout unpin <FORMULA>
Arguments:
<FORMULA> Formula to unpinCreate symlinks for a package without reinstalling:
stout link [OPTIONS] <FORMULA>
Arguments:
<FORMULA> Formula to link
Options:
-f, --force Overwrite existing files
--overwrite Synonym for --forceRemove symlinks for a package without uninstalling:
stout unlink <FORMULA>
Arguments:
<FORMULA> Formula to unlinkUninstall and reinstall a package:
stout reinstall [OPTIONS] <FORMULAS>...
Arguments:
<FORMULAS>... Formulas to reinstall
Options:
-s, --build-from-source Build from source instead of using bottles
--keep-bottles Keep downloaded bottles after installationRemove old downloads and cache files:
stout cleanup [OPTIONS] [FORMULAS]...
Arguments:
[FORMULAS]... Specific formulas to clean up (default: all)
Options:
--prune=<DAYS> Remove downloads older than DAYS (default: 120)
-s, --scrub Scrub the cache, including downloads for latest versions
-n, --dry-run Show what would be removed without removing
--prune-prefix Remove old versions from the CellarDisplay stout configuration and system information:
stout configShows: version, paths, index URL, CPU/OS info, and Rust version.
Manage background services for installed packages:
stout services [COMMAND]
Subcommands:
list List all managed services (default)
start <service> Start a service
stop <service> Stop a service
restart <service> Restart a service
run <service> Run a service (foreground, not registered)
info <service> Show service information
cleanup Clean up unused servicesManage custom formula repositories:
stout tap [OPTIONS] [TAP]
Arguments:
[TAP] Tap to add (e.g., homebrew/cask)
Options:
-r, --remove Remove a tap instead of addingManage lockfiles for reproducible environments:
stout lock [COMMAND]
Subcommands:
create Create a lockfile from currently installed packages
install Install packages from a lockfile
diff Show differences between lockfile and installed packagesstout can also manage applications (casks) on macOS and Linux. Casks are packaged macOS applications (DMG, PKG, ZIP) or Linux apps (AppImage, Flatpak). All cask operations use --cask on the top-level commands.
# Install (auto-detected as cask)
stout install firefox
# Explicitly install as cask
stout install --cask firefox
# Install with options
stout install --cask --no-verify firefox
# Custom application directory
stout install --cask --appdir ~/Apps firefox# Uninstall
stout uninstall --cask firefox
# Remove with thorough cleanup (preferences, caches)
stout uninstall --cask --zap firefox# Search casks only
stout search --cask browser
# Search both formulas and casks (default)
stout search browser# Show cask info
stout info --cask visual-studio-code# List installed casks
stout list --cask
# List with versions
stout list --cask --versions
# List both formulas and casks (default)
stout list# Check both formulas and casks (default)
stout outdated
# Check casks only
stout outdated --cask
# Check formulas only
stout outdated --formula# Upgrade all (formulas + casks)
stout upgrade
# Upgrade casks only
stout upgrade --cask
# Upgrade specific cask
stout upgrade firefox# Install popular applications
stout install visual-studio-code firefox slack discord
# View application details
stout info --cask visual-studio-code
# List installed applications with versions
stout list --cask --versions
# Check for updates
stout outdated --cask
# Upgrade all applications
stout upgrade --cask
# Uninstall with thorough cleanup
stout uninstall --cask --zap discordNote:
stout cask <command>is deprecated. Usestout <command> --caskinstead.
On Linux, stout supports AppImage and Flatpak formats:
# AppImage installation
# Apps are installed to ~/.local/share/stout/appimages/
# Symlinks are created in ~/.local/bin/
# Flatpak support (if installed)
# Uses user-level flatpak installation
# Desktop entries are created in ~/.local/share/applications/stout supports Homebrew's Brewfile format for declaring system packages.
Install packages from Brewfile (default subcommand):
stout bundle [OPTIONS]
Options:
-f, --file <FILE> Path to Brewfile (default: ./Brewfile)
--dry-run Show what would be installed
--force Force reinstall
--no-tap Skip tap entries
--no-brew Skip formula entries
--no-cask Skip cask entriesGenerate Brewfile from installed packages:
stout bundle dump [OPTIONS]
Options:
-f, --file <FILE> Output file (default: ./Brewfile)
--force Overwrite existing file
--all Include dependencies (not just requested)
--stdout Output to stdout instead of fileCheck if all Brewfile packages are installed:
stout bundle check [OPTIONS]
Options:
-v, --verbose Show detailed outputList entries in Brewfile:
stout bundle list [OPTIONS]
Options:
--type <TYPE> Filter by type (tap, brew, cask, mas)
--json Output as JSONRemove packages not in Brewfile:
stout bundle cleanup [OPTIONS]
Options:
--dry-run Show what would be removed
--force Force removalstout supports the standard Homebrew Brewfile format:
# Taps
tap "homebrew/cask"
tap "homebrew/cask-fonts"
# Formulas
brew "jq"
brew "ripgrep"
brew "postgresql@15"
# Casks
cask "firefox"
cask "visual-studio-code"
# Mac App Store (requires mas)
mas "Xcode", id: 497799835Snapshots allow you to save and restore the current state of installed packages.
Create a new snapshot:
stout snapshot create <NAME> [OPTIONS]
Arguments:
<NAME> Name for the snapshot
Options:
-d, --description <DESC> Optional description
-f, --force Overwrite if existsList all snapshots:
stout snapshot list [OPTIONS]
Options:
--json Output as JSONShow snapshot details:
stout snapshot show <NAME> [OPTIONS]
Arguments:
<NAME> Snapshot name
Options:
--json Output as JSONRestore a snapshot:
stout snapshot restore <NAME> [OPTIONS]
Arguments:
<NAME> Snapshot name
Options:
--dry-run Show what would be installed
-f, --force Force installDelete a snapshot:
stout snapshot delete <NAME> [OPTIONS]
Arguments:
<NAME> Snapshot name
Options:
-f, --force Don't ask for confirmationExport and import snapshots:
# Export to stdout
stout snapshot export mysetup > backup.json
# Import from stdin
cat backup.json | stout snapshot import# Create a snapshot before major changes
stout snapshot create before-update --description "Before system update"
# List snapshots
stout snapshot list
# Preview what would be restored
stout snapshot restore before-update --dry-run
# Actually restore
stout snapshot restore before-update
# Export for backup
stout snapshot export before-update > ~/backups/stout-snapshot.json# Set log level
RUST_LOG=debug stout search json
# Override config location
STOUT_CONFIG=/path/to/config.toml stout updatestout is designed to coexist with Homebrew:
# Packages installed by brew are visible to stout
brew install wget
stout list # Shows wget
# Packages installed by stout are visible to brew
stout install jq
brew list # Shows jqstout caches downloaded bottles and formula data:
# Cache location
~/.stout/downloads/ # Downloaded bottles
~/.stout/formulas/ # Formula JSON files
# Clean up old downloads (>120 days) using cleanup command
stout cleanup
# Clean downloads older than 30 days
stout cleanup --prune=30
# Remove all cached downloads
stout cleanup --scrub
# Preview what would be removed
stout cleanup --dry-run
# Manual cache clearing
rm -rf ~/.stout/downloads/*
rm -rf ~/.stout/formulas/*Once you've downloaded the index, many commands work offline:
# These work offline:
stout search json
stout list
stout doctor
# These require network:
stout update
stout info <pkg> # If not cached
stout install <pkg># Update index first
stout update
# Install common dev tools
stout install git gh jq yq ripgrep fd bat eza
# Verify installation
stout list# Find JSON-related tools
stout search json
# Find packages with "vim" in name/description
stout search vim
# Get details on an interesting package
stout info neovim# See what's installed
stout list
# Check for outdated packages
stout outdated
# Remove packages you don't need
stout uninstall package1 package2
# Remove orphaned dependencies
stout autoremove
# Clean up old downloads (older than 120 days)
stout cleanup
# Clean all cached downloads
stout cleanup --scrub# Show what a package depends on
stout deps jq
# Show dependencies as a tree
stout deps jq --tree
# Show all dependency types (including build/test)
stout deps jq --all
# Output as DOT graph (for visualization)
stout deps jq --graph | dot -Tpng -o jq-deps.png
# Output as JSON (for scripting)
stout deps jq --json
# Find what depends on a package
stout uses openssl
# Find installed packages that depend on openssl
stout uses openssl --installed
# Find why a package is installed
stout why oniguruma# View package history
stout history jq
# View history for all packages
stout history
# View only the last 5 entries
stout history jq -n 5
# Rollback to previous version
stout rollback jq
# Rollback to specific version
stout rollback jq --version 1.6
# Preview rollback without making changes
stout rollback jq --dry-run
# Switch between installed versions (if multiple in Cellar)
stout switch jq 1.7
# Preview switch
stout switch jq 1.6 --dry-run# Prevent a package from being upgraded
stout pin postgresql@15
# See pinned packages
stout list --pinned
# Allow upgrades again
stout unpin postgresql@15# List services
stout services list
# Start a service
stout services start postgresql
# Stop a service
stout services stop postgresql
# View service info
stout services info postgresql# Scan all installed packages for vulnerabilities
stout audit
# Scan specific packages
stout audit jq openssl
# Update vulnerability database before scanning
stout audit --update
# Output as JSON
stout audit --format json
# Only show high/critical severity
stout audit --severity high
# Fail if vulnerabilities found at severity threshold
stout audit --fail-on criticalstout can scan installed packages for known security vulnerabilities using an offline vulnerability database.
Scan packages for vulnerabilities:
stout audit [OPTIONS] [PACKAGES]...
Arguments:
[PACKAGES]... Packages to audit (default: all installed)
Options:
--update Update vulnerability database before scanning
-f, --format <FMT> Output format: text (default), json
--severity <SEV> Minimum severity to report: low, medium, high, critical
--fail-on <SEV> Exit with error if vulnerabilities >= severity found
--show-unmapped Show packages without vulnerability data# Full audit of all installed packages
stout audit
# Audit specific packages
stout audit openssl curl wget
# Update database and audit
stout audit --update
# CI/CD usage - fail on high+ severity
stout audit --fail-on high
# Get machine-readable output
stout audit --format json > vulnerabilities.json
# Only show critical issues
stout audit --severity critical
# See which packages have no vulnerability data
stout audit --show-unmappedExample text output:
Auditing 45 packages for vulnerabilities...
CRITICAL CVE-2024-1234 in openssl@3 (3.0.12)
A critical vulnerability in TLS handshake...
Fix: 3.0.13
More info: https://nvd.nist.gov/vuln/detail/CVE-2024-1234
HIGH CVE-2024-5678 in curl (8.4.0)
Remote code execution via malformed URL...
Fix: 8.5.0
More info: https://curl.se/docs/CVE-2024-5678.html
Summary
1 critical
1 high
0 medium
0 low
2 total vulnerabilities in 2 packages
stout uses a pre-built vulnerability database that maps Homebrew formulas to known CVEs:
- Database sync:
scripts/sync_vulns.pyfetches vulnerability data from OSV (Open Source Vulnerabilities) - Mapping: Formulas are mapped to their upstream package ecosystems (npm, PyPI, OSS-Fuzz, etc.)
- Version matching: Installed versions are checked against affected version ranges
- Reporting: Findings are sorted by severity
The vulnerability database is updated periodically and downloaded on first use or with --update.
stout supports creating and using offline mirrors for air-gapped environments.
Create a new offline mirror with specified packages:
stout mirror create <OUTPUT_DIR> [OPTIONS] <PACKAGES>...
Arguments:
<OUTPUT_DIR> Output directory for the mirror
<PACKAGES>... Packages to include in the mirror
Options:
--all-installed Include all installed packages
--from-brewfile <FILE> Create from Brewfile
--cask <CASK> Include cask (can be repeated)
--platforms <PLAT> Target platforms (default: current)
--all-platforms Include all platforms (warning: large)
--no-deps Skip dependency resolution
--dry-run Show what would be downloadedServe a mirror via HTTP:
stout mirror serve <PATH> [OPTIONS]
Arguments:
<PATH> Path to the mirror directory
Options:
-p, --port <PORT> Port to listen on (default: 8080)
--bind <ADDR> Address to bind to (default: 0.0.0.0)
--log-access Enable access loggingShow information about a mirror:
stout mirror info <PATH> [OPTIONS]
Arguments:
<PATH> Path to the mirror directory
Options:
--json Output as JSONVerify mirror integrity:
stout mirror verify <PATH> [OPTIONS] [PACKAGES]...
Arguments:
<PATH> Path to the mirror directory
[PACKAGES]... Specific packages to verify (default: all)
Options:
-v, --verbose Show verbose outputCheck for outdated packages in mirror:
stout mirror outdated <PATH> [OPTIONS]
Arguments:
<PATH> Path to the mirror directory
Options:
--json Output as JSONUpdate packages in an existing mirror:
stout mirror update <PATH> [OPTIONS] [PACKAGES]...
Arguments:
<PATH> Path to the mirror directory
[PACKAGES]... Packages to update (default: all)
Options:
--from-brewfile <FILE> Update from Brewfile
--dry-run Show what would be updated# Create a mirror with specific packages
stout mirror create ./mirror jq wget curl
# Create a mirror from all installed packages
stout mirror create ./mirror --all-installed
# Create a mirror for multiple platforms
stout mirror create ./mirror jq --platforms arm64_sonoma,x86_64_linux
# Serve a mirror on the network
stout mirror serve ./mirror --port 9000
# Check mirror for outdated packages
stout mirror outdated ./mirror
# Verify mirror integrity
stout mirror verify ./mirror --verboseConfigure stout to use a mirror:
# One-time override
stout --mirror=http://mirror.internal:8080 install jq
# File-based mirror (USB drive, local mount)
stout --mirror=file:///mnt/usb/stout-mirror install jq
# Configure as default in ~/.stout/config.toml
[mirror]
url = "http://mirror.internal:8080"
fallback = "error" # error, warn, or silent
verify_checksums = falsemirror/
├── manifest.json # Master manifest with checksums
├── formulas/
│ ├── index.db.zst # Filtered SQLite index
│ ├── data/
│ │ └── <letter>/<name>.json.zst
│ └── bottles/
│ └── <name>-<version>.<platform>.bottle.tar.gz
├── casks/
│ ├── index.db.zst
│ ├── data/
│ └── artifacts/
└── linux-apps/
├── index.db.zst
├── data/
└── artifacts/
stout includes tools for formula development and package creation.
Create and manage binary packages (bottles):
stout bottle <SUBCOMMAND>
Subcommands:
create <PACKAGE> Create a bottle from an installed package
info <BOTTLE> Show information about a bottle file
verify <BOTTLE> Verify bottle integrity# Create a bottle from an installed package
stout bottle create jq
# Show bottle metadata
stout bottle info jq-1.7.1.arm64_linux.bottle.tar.gz
# Verify bottle integrity
stout bottle verify jq-1.7.1.arm64_linux.bottle.tar.gzCreate new formulas or casks from a URL:
stout create [OPTIONS] <URL>
Arguments:
<URL> URL to the source archive or application
Options:
--cask Create a cask instead of a formula
--name <NAME> Override the inferred name
--output <DIR> Output directory (default: current directory)# Create a formula from a GitHub release
stout create https://github.com/user/project/archive/v1.0.0.tar.gz
# Create a formula with custom name
stout create --name myapp https://example.com/source.tar.gz
# Create a cask from a DMG
stout create --cask https://example.com/App.dmgRun tests on installed packages:
stout test [OPTIONS] [PACKAGES]...
Arguments:
[PACKAGES]... Packages to test (default: all installed)
Options:
-v, --verbose Show detailed test output# Test all installed packages
stout test
# Test specific packages
stout test jq wget curl
# Test with verbose output
stout test jq --verboseManage opt-in anonymous usage analytics:
stout analytics <SUBCOMMAND>
Subcommands:
on Enable anonymous analytics
off Disable analytics (default)
status Show current analytics status
what Show what data would be collected# Check current status
stout analytics status
# Enable analytics
stout analytics on
# Disable analytics
stout analytics off
# See what data is collected
stout analytics whatWhen installing packages from source, you can customize the build:
stout install <PACKAGE> -s [OPTIONS]
Options:
-s, --build-from-source Build from source instead of using bottles
-j, --jobs <N> Number of parallel build jobs (default: CPU count)
--cc <COMPILER> C compiler to use (e.g., clang, gcc)
--cxx <COMPILER> C++ compiler to use (e.g., clang++, g++)# Build from source with 8 parallel jobs
stout install jq -s --jobs=8
# Build with specific compilers
stout install jq -s --cc=clang --cxx=clang++
# Build with GCC
stout install openssl -s --cc=gcc --cxx=g++stout supports multiple installation prefixes for isolated environments.
Manage multiple installation prefixes:
stout prefix <SUBCOMMAND>
Subcommands:
create <PATH> Create a new prefix
list List all known prefixes
info [PATH] Show prefix information (default: current prefix)
default <PATH> Set the default prefix
remove <PATH> Remove a prefixCreate a new isolated prefix:
stout prefix create [OPTIONS] <PATH>
Arguments:
<PATH> Path for the new prefix
Options:
-f, --force Force creation even if directory existsRemove a prefix:
stout prefix remove [OPTIONS] <PATH>
Arguments:
<PATH> Path to the prefix
Options:
--packages Also remove all installed packages
-f, --force Force removal without confirmationYou can use a custom prefix with any command using the --prefix flag:
# Install to a custom prefix
stout --prefix=~/project/.stout install jq python@3.11
# List packages in a custom prefix
stout --prefix=~/project/.stout list
# Upgrade packages in a custom prefix
stout --prefix=~/project/.stout upgradeSet the default prefix via environment variable:
export STOUT_PREFIX=~/project/.stout
# All commands now use the custom prefix
stout install jq # Installs to ~/project/.stout
stout list # Lists packages in ~/project/.stout# Create an isolated prefix for a project
stout prefix create ~/projects/myapp/.stout
# View prefix information
stout prefix info ~/projects/myapp/.stout
# Install packages to the project prefix
stout --prefix=~/projects/myapp/.stout install python@3.11 node@20
# List all known prefixes
stout prefix list
# Set as default prefix
stout prefix default ~/projects/myapp/.stout
# Add to PATH for project
export PATH="$HOME/projects/myapp/.stout/bin:$PATH"
# Remove prefix when no longer needed
stout prefix remove ~/projects/myapp/.stout --packages --forceWhen you create a prefix, the following directory structure is created:
~/project/.stout/
├── .stout-prefix # Marker file
├── Cellar/ # Installed package versions
├── bin/ # Executable symlinks
├── lib/ # Library symlinks
├── include/ # Header symlinks
├── share/ # Shared data symlinks
├── etc/ # Configuration files
└── var/ # Variable data
- Project-specific dependencies: Isolate dependencies per project
- Version testing: Test different package versions without affecting system
- CI/CD environments: Create reproducible build environments
- Development sandboxes: Experiment without risk to main installation