Task | apt (deb) | yum (rpm) | zypper (rpm) |
Install from repository | apt-get install pkg-name | yum install pkg-name | zypper install pkg-name |
Update package | apt-get install pkg-name | yum update pkg-name | zypper update -t package pkg-name |
Remove package | apt-get remove pkg-name | yum erase pkg-name | zypper remove pkg-name |
Install from package file | dpkg -i pkg-name | yum localinstall pkg-name | zypper insta |
Search by package name | apt-cache search pkg-name or apt-cache policy pkg-name or apt-cache madison pkg-name | yum list pkg-name | zypper search pkg-name |
Search by pattern | apt-cache search pattern | yum search pattern | zypper search -t pattern pattern |
Search by file name | apt-file search path | yum provides file | zypper wp file |
List installed packages | dpkg -l | rpm -qa | zypper search -is |
Show package information | apt-cache show pgk-name | yum info pkg-name | zypper info pkg-name |
Update package list | apt update | yum check-update | zypper refresh |
Update system | apt upgrade | yum update | zypper update |
List repositories | grep -rhE ^deb /etc/apt/sources.list* or apt policy | yum repolist | zypper repos |
Add repository | add to /etc/apt/sources.list.d/ | add to /etc/yum.repos.d/ | add to /etc/zypp/repos.d/ |
Remove repository | remove from /etc/apt/sources.list.d/ | remove from /etc/yum.repos.d/ | remove from /etc/zypp/repos.d/ |
Enable repository | add-apt-repository repository | yum-config-manager –enable repository | zypper addrepo URI name |
Disable repository | add-apt-repository -r repository | yum-config-manager –disable repository | zypper removerepo name |
Nice