links->home

Action ArchLinux CentOS Debianoide Fedora FreeBSD
yes parameter
--noconfirm
-y
--assumeyes
-y
--yes
--assume-yes
-y
--assumeyes
-y
--yes
no parameter
--confirm
--assumeno
--assume-no
--assumeno
---
pkg info
pacman -Qi <pkg>
pacman -Si <pkg>
pacman -Sii <pkg>
rpm -qi <pkg>
yum info <pkg>
apt-cache show <pkg>
aptitude show <pkg>
dpkg -s <pkg>
dnf info <pkg>
rpm -qi <pkg>
pkg info <pkg>
install pkg
pacman -S <pkg>
yum install <pkg>
apt-get install <pkg>
aptitude install <pkg>
dnf install <pkg>
pkg install <pkg>
search pkgs
pacman -Ss <name>
yum search <name>
apt-cache search <name>
aptitude search <name>
dnf search <name>
pkg search <name>
update pkgs
pacman -Syu
pacman -Syyu
yum update
apt-get update && apt-get upgrade
dnf upgrade
pkg update && pkg upgrade
upgrade pkgs
pacman -Syu
pacman -Syyu
yum upgrade
apt-get update && apt-get dist-upgrade
dnf distro-sync
pkg update && pkg upgrade
remove pkg
pacman -Rs
pacman -Rc
pacman -Rsc
yum erase <pkg>
yum remove <pkg>
apt-get autoremove <pkg>
apt-get remove <pkg>
dnf remove <pkg>
pkg remove <pkg>
reinstall pkg
pacman -S <pkg>
yum reinstall <pkg>
apt-get install --reinstall <pkg>
dnf reinstall <pkg>
pkg install -f <pkg>
download pkg
pacman -Sw <pkg>
yum download <pkg>
apt-get download <pkg>
apt-get install --download-only <pkg>
dnf download <pkg>
TODO
install local pkg
pacman -U <path_pkg>
rpm -i <path_pkg>
yum localinstall <path_pkg>
dpkg -i <path_pkg> && apt-get install -f
rpm -i <path_pkg>
dnf install <path_pkg>
TODO
find file in pkgs
pacman -Qo <file>
pkgfile <file>
repoquery --whatprovides <path_file>
rpm -qf <path_to_file>
yum provides <path_file>
yum whatprovides <path_file>
apt-file search
dpkg -S <path_file>
dlocate -S <path_file>
rpm -qf <path_file>
dnf provides <path_file>
not trivial
list files in pkg
pacman -Ql <pkg>
pkgfile -l <pkg>
repoquery -l <pkg>
dpkg -L <pkg>
dpkg-query -L <pkg>
dnf repoquery -l <pkg>
pkg info -l <pkg>
list installed packages
pacman -Q
rpm -qa
yum list installed
dpkg --list | grep '^i'
dnf list installed
pkg info
refresh repo lists
pacman -Sy
yum check-update
apt-get update
dnf clean expire-cache
   && dnf check-update
pkg update
list dependencies of pkg
pacman -Qi <pkg> | fgrep 'Depends On'
pacman -Si <pkg> | fgrep 'Depends On'
repoquery -R <pkg>
repoquery -R --resolve <pkg>
apt-cache depends <pkg>
apt-cache show <pkg>
apt-cache showpkg <pkg>
dpkg -I <pkg>.deb
dnf repoquery --requires --resolve <pkg>
pkg info -d <pkg>
list reverse dependencies of pkg
pacman -Qi <pkg> | fgrep 'Required By'
pacman -Sii <pkg> | fgrep 'Required By'
rpm -q --whatrequires <pkg>
apt-cache rdepends <pkg>
aptitude search '~D<pkg>'
aptitude why <pkg>
rpm -q --whatrequires <pkg>
pkg info -r <pkg>
list installed but unavailable pkgs
pacman -Qm
yum list extras
deborphan
dnf list orphan
TODO
remove orphans
pacman -Rs[c] $(pacman -Qdtq)
pacman -Qdtq | pacman -Rs[c]-
yum autoremove
apt-get autoremove
dnf autoremove
pkg autoremove
clean local caches
pacman -Sc
pacman -Scc
yum clean all
apt-get clean
apt-get autoclean
aptitude clean
dnf clean all
pkg clean
fix broken dependencies
testdb
findbrokenpkgs
lddd
not quite but close:
yum-complete-transaction
apt-get install -f
aptitude install
dnf repoquery --unsatisfied
TODO
list groups
pacman -Sg
pacman -Qg
yum grouplist
yum group list
TODO
dnf grouplist
dnf group list
TODO
check for updates
checkupdates
yum check-update
apt-check
dnf check-update
freebsd-update fetch