Note Always run apt update before installing to refresh package lists. apt is for Debian-based distributions (Debian, Ubuntu, Linux Mint, Pop!_OS). -y auto-confirms prompts. Use apt autoremove to clean up unused dependencies.
brew install jq ripgrep tree
brew install --cask visual-studio-code
brew list
brew cleanup
Note Homebrew is the dominant package manager on macOS and also runs on Linux. Formulae are CLI tools; casks are GUI applications. Run brew update to refresh, brew upgrade to update all installed packages. brew cleanup removes old versions to free space.
Note dnf is the modern replacement for yum (Fedora 22+, RHEL 8+, CentOS Stream). yum still works on older CentOS/RHEL 7. Both resolve dependencies automatically. Use dnf list installed to see what is installed.
Note --classic is required for snaps that need broader system access (like editors and compilers). Snaps auto-update in the background. Available on Ubuntu by default and installable on most Linux distributions. snap refresh manually triggers updates.
Note which shows the full path of a command. whereis also shows man pages and source locations. In scripts, prefer command -v over which because it is POSIX-compliant and handles aliases/builtins correctly.
where is binaryfind command pathwhich commandis installedlocate binary