Package Management Cheatsheet
Package Management Cheatsheet
Package Management Cheatsheet
apt (deb) yum (rpm) zypp (rpm) urpmi (rpm) slapt-get (tgz,tbz,tlz) pacman (pkg.tar.gz) smart
Task Ubuntu, Debian Fedora, CentOS openSUSE Mandriva Vector Arch http://smartpm.org
Managing software
Install new software apt-get install pkg yum install pkg zypper install pkg urpmi pkg slapt-get --install pkg pacman -S pkg smart install pkg
from package repository
Install new software dpkg -i pkg yum localinstall pkg zypper install pkg urpmi pkg slapt-get --install pkg pacman -U pkg smart install pkg
from package file
Update existing software apt-get install pkg yum update pkg zypper update urpmi pkg slapt-get --install pkg pacman -S pkg smart upgrade pkg
-t package pkg
Remove unwanted software apt-get remove pkg yum erase pkg zypper remove pkg urpme pkg slapt-get --remove pkg pacman -R pkg smart remove pkg
Update system apt-get upgrade yum update zypper update urpmi --auto-select slapt-get --upgrade pacman -Su smart upgrade
Search by pattern apt-cache search pat yum search pat zypper search urpmq --fuzzy pat slapt-get --search pat pacman -Ss pat smart search pat
-t pattern pat
Search by file name apt-file search file yum provides file zypper wp file urpmf file -- pacman -Qo file smart query --path=file
List installed packages dpkg -l yum list installed zypper search -is rpm -qa slapt-get --installed pacman -Q smart query --installed
Add repository (edit (add repo to zypper addrepo urpmi.addmedia (edit (edit smart channel –add
/etc/apt/sources.list) /etc/yum.repos.d/) path name name path /etc/slapt-get/slapt-getrc) /etc/pacman.conf) name path
Remove repository (edit (remove repo from zypper removerepo urpmi.removemedia (edit (edit smart channel –remove
/etc/apt/sources.list) /etc/yum.repos.d/) name name /etc/slapt-get/slapt-getrc) /etc/pacman.conf) name
Based on earlier work by distrowatch.com