Package Managers
Jump to navigation
Jump to search
Contents
Homebrew
brew help
brew commands
brew install formula
brew upgrade formula
brew list --versions
- lists installed onlybrew info formula
brew reinstall
brew install --cask messenger --appdir=~/Applications/
brew bundle dump
- creates a ./Brewfile that just lists all the packages you asked to have installed without dependencies
pip
pip install --force-reinstall --upgrade
pip show -f <package>
- show info on what got installed where, -f gives list of filespip install jedi==0.17.2
- when downgrading a version use double == (compared with conda's single =)
conda/mamba
- Managing conda environments
conda update -n base -c defaults conda
conda info
conda config --show
conda config --add channels conda-forge
conda config --set channel_priority strict
conda init zsh
command -v conda
- alternative towhich conda
for zshconda list
andpip list
- list installed packagesconda env list
conda activate rstanenv
conda install -c conda-forge r-mcmcglmm r-brms
conda update conda
conda create --name CondaR -c r -c conda-forge r-lme4 r-tidyverse r-broom.mixed r-skimr r-tictoc r-rlang r-magrittr r-glue r-performance r-ggally r-irkernel r-furrr r-mice r-glmnet jupyterlab r-plotly r-rbokeh r-glmmtmb
conda create --name CondaR2 -c r -c conda-forge r-lme4 r-dplyr r-tidyselect r-readr r-arrow r-lubridate r-broom.mixed r-skimr r-tictoc r-rlang r-magrittr r-glue r-performance r-ggally r-irkernel
conda env remove -n rstanenv
conda create --name py310 python=3.10 jupyterlab pandas=1.5.3 ruff pylint numpy scipy matplotlib scikit-learn scikit-image seaborn statsmodels pyarrow openpyxl
conda search mxnet
conda install -y boost
conda install -c conda-forge <package name>
conda update -n base -c defaults conda
- Update base condaconda remove --name ENV_NAME --all
Chocolatey
- Run as administrator to install stuff
- Chocolatey - windows package manager - does hash
choco -?
choco list -l
- list locally installed packages onlychoco upgrade chocolatey
choco uninstall
WinGet
winget upgrade powershell
yum/dnf
- DNF = "dandified yum"
- "DNF is the next upcoming major version of YUM, a package manager for RPM-based Linux distributions. It roughly maintains CLI compatibility with YUM and defines a strict API for extensions and plugins."
Examples
yum -y install ____
yum -y remove ____
yum update mysql
yum list openssh
search for a specific package name, jackpotyum search ______
search for a specific package name, partial string matches includedyum info firefox
- get info on package before installing ityum list installed | less
yum provides /path/to/package/filename
-yum check-update
- find how many installed packages on your system have updates availableyum update
- install all the latest patches and security updatesyum grouplist
- lists both installed and availableyum groupinstall 'MySQL Database'
yum groupupdate 'DNS Name Server'
yum groupremove 'DNS Name Server'
yum repolist
yum repolist all
- display all enabled and disables reposyum --enablerepo=<REPONAME> install _____
yum clean all
- Clean Yum Cacheyum history
apt
- ALWAYS FIRST:
apt update
apt install -y pkg1 pkg2
apt list --installed
- makes no distinction between requested packages and dependenciesapt locate
sudo apt-get remove <package name>
- to remove a package- Antiquated way to see installed packages:
sudo apt-get install aptitude; aptitude search '~i!~M'
npm
npm ls packageName
apk - Alpine Package Keeper
apk add --no-cache git