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/
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
- 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 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
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
apt list --installed