Package management - jasper-zanjani/dotfiles GitHub Wiki
- add-apt-repository
- alien
- apt
- apt-cache
- apt-key
- add-apt-repository
- apt-key
- dnf
- dpkg
- dpkg-reconfigure
- galliumos-repodist
- gem
- pacman
- pip
- pydoc
- rpm
- snap
- yay
- yum
Add Docker repos
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"dist-upgrade install list remove update upgrade
depends dump rdepends search showpkg showsrc stats
Display package information regarding package cache
Add key specified by apt in error message sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68980A0EA10B4DE8
Add Docker repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"add-apt-repository "deb http://security.ubuntu.com/ubuntu trusty-security main universe"[Convert][LPM 231 Regolith Linux] Ubuntu to Regolith Linux
add-apt-repository -y ppa:kgilmer/regolith-stable
apt updatelib
apt install regolith-desktopAdd a public GPG key to keyring
# Google Cloud SDK
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
# https://medium.com/faun/docker-running-seamlessly-in-windows-subsystem-linux-6ef8412377aa
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -Install key from Mono
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EFView all dnf commands
dnf historyView all packages installed by user
dnf history userinstalledDisplay information about a package group [ref][https://docs.fedoraproject.org/en-US/quick-docs/getting-started-with-virtualization/]
dnf groupinfo virtualizationInstall a package group [ref][https://docs.fedoraproject.org/en-US/quick-docs/getting-started-with-virtualization/]
dnf install @virtualizationInstall a package group, including optional packages [ref][https://docs.fedoraproject.org/en-US/quick-docs/getting-started-with-virtualization/]
dnf group install --with-optional virtualization i l p r s C E G I L P R S
configure get-selections print-avail unpack
Run a package's configuration script after it has already been installed.
Change the time zone on a Debian based system using package-based tools
dpkg-reconfigure tzdataEnable "testing" and "prerelease" repositories wiki.galliumos.org
sudo galliumos-repodist --enable prerelease sudo galliumos-repodist --enable testing sudo galliumos-update
Install a Ruby $PACKAGE
gem install $PACKAGEDisplay currently installed Ruby packages
gem listRemove $PACKAGE
gem uninstall packageUpdate $PACKAGE
gem update package| Option | POSIX option | Effect |
|---|---|---|
Q |
--query |
list all installed packages |
-R |
remove {pkg}, but leave dependencies | |
-Qe |
list programs explicitly installed by user or program command | |
-Qeq |
list only program names explicitly installed | |
-Qm |
list programs only installed from AUR | |
-Qn |
list programs only installed from main repositories | |
-Qdt |
list dependencies no longer needed (orphans) | |
-Ql |
--query --list
|
list all files owned by a package |
-S |
--sync |
install {pkg} |
-Sy |
synchronize package database | |
-Su |
update programs | |
-Syu |
sync package database (Sy) and upgrade all programs (u) (equivalent to apt-get update && apt-get upgrade) |
|
-Syy |
force double-check of repositories | |
-Syyuw |
downloads programs but doesn't install them, for the option of manual installation | |
-Rs |
remove {pkg} as well as its dependencies | |
-Rns |
remove {pkg}, dependencies, as well as config files | |
| List installed packages |
pacman -Q
pacman --queryList all orphaned dependencies (no longer needed)
pacman -Qdt
pacman --query --deps --unrequiredList only explicitly installed packages and versions
pacman -Qe
pacman --query --explicitList explicitly installed packages, limiting output to program names
pacman -Qeq
pacman --query --explicit --quietList all packages installed from the AUR
pacman -Qm
pacman --query --foreignList all packages installed from main repos
pacman -Qn
pacman --query --nativeFind which package owns {file}
pacman -Qo file
pacman --query --owns fileList all install packages, filtering output to packages that are out-of-date on the local system
pacman -Qu
pacman --query --upgradesRemove {package}
pacman -R package
pacman --remove packageRemove {package}, dependencies, and config files
pacman -Rns package
pacman --remove --recursive --nosaveRemove {package} as well as its dependencies
pacman -Rs
pacman --remove --recursiveInstall {pkg} from the AUR
pacman -S package
pacman --sync packageRemove all packages from the cache as well as unused sync databases
pacman -Scc
pacman --sync --clean --cleanDisplay information about {package}
pacman -Si package
pacman --sync --info packageSearch for {pkg} in AUR repos
pacman -Ss package
pacman --sync --search packageSearch for packages matching {searchexpression}
pacman -Ss pattern
pacman --sync --search patternUpdate package database
pacman -Sy
pacman --sync --refreshUpdate all packages from AUR and official repos
pacman -Syu
pacman --sync --refresh --sysupgradeForce refresh of all package databases, even if they appear to be up-to-date
pacman -Syy
pacman --sync --refresh --refreshDownload program updates but don't install them
pacman -Syyuw
pacman --sync --refresh --refresh --sysupgrade --downloadonlyGet number of total installed packages
pacman -Q | wc -lDisplay installed packages
pip listDisplay information about {package}
pip show packageDisplay all installed Python modules
pydoc modules a c d e f h i l p q s v I K R U V force nodeps nofiles nomd5 nopgp provides test
Query repos for information on {package}
rpm -qi package
rpm --query --info packageUpgrade or install {package}, with progress bars
rpm -Uvh package
rpm --upgrade --verbose --hash packageDisplay version of Fedora
rpm -E %fedoradisable
enable
info
install
logs
refresh
remove
clean all
erase
groupinstall
groupremove
history
info
install
list
list installed
provides
remove
repolist
repolist all
search
shell
update