Using a Linux system is always free of contact with package management tools. For example, Debian/Ubuntu apt, opensuse zypp, fedora yum, mandriva urpmi, slackware slackpkg, archlinux pacman, Gentoo emerge, foresight conary, pardus pisi, and so on. Distrowatch summarizes the main usage of the above Package Manager and has a good reference for Linux users. There are still a few shortcomings in this summary. I will organize a more comprehensive version for you.
Task |
Apt Debian, UBUNTU |
Zypp Opensuse |
Yum Fedora, centos |
Installation Package |
Apt-Get install <PKG> |
Zypper install <PKG> |
Yum install <PKG> |
Remove package |
Apt-Get remove <PKG> |
Zypper remove <PKG> |
Yum erase <PKG> |
Update package list |
Apt-Get update |
Zypper refresh |
Yum check-Update |
Update System |
Apt-Get upgrade |
Zypper update |
Yum update |
List sources |
CAT/etc/APT/sources. List |
Zypper Repos |
Yum repolist |
Add Source |
(Edit/etc/APT/sources. List) |
Zypper addrepo <path> <Name> |
(Add <repo> to/etc/yum. Repos. d /) |
Remove Source |
(Edit/etc/APT/sources. List) |
Zypper removerepo <Name> |
(Remove <repo> from/etc/yum. Repos. d /) |
Search package |
Apt-cache search <PKG> |
Zypper search <PKG> |
Yum search <PKG> |
List Installed packages |
Dpkg-l |
Rpm-Qa |
Rpm-Qa |
Task |
Urpmi Mandriva |
Slackpkg Slackware |
Pacman Arch |
Installation Package |
Urpmi <PKG> |
Slackpkg install <PKG> |
Pacman-S <PKG> |
Remove package |
Urpme <PKG> |
Slackpkg remove <PKG> |
Pacman-r <PKG> |
Update package list |
Urpmi. Update- |
Slackpkg update |
Pacman-sy |
Update System |
Urpmi -- auto-select |
Slackpkg upgrade-all |
Pacman-su |
List sources |
Urpmq -- list-Media |
CAT/etc/slackpkg/mirrors |
CAT/etc/Pacman. conf |
Add Source |
Urpmi. addmedia <Name> <path> |
(Edit/etc/slackpkg/mirrors) |
(Edit/etc/Pacman. conf) |
Remove Source |
Urpmi. removemedia <media> |
(Edit/etc/slackpkg/mirrors) |
(Edit/etc/Pacman. conf) |
Search package |
Urpmf <PKG> |
-- |
Pacman-QS <PKG> |
List Installed packages |
Rpm-Qa |
Ls/var/log/packages/ |
Pacman-qii |
Task |
Conary Rpath, foresight |
Pisi Pardus |
Emerge Gentoo |
Installation Package |
Conary update <PKG> |
Pisi install <PKG> |
Emerge <PKG> |
Remove package |
Conary erase <PKG> |
Pisi remove <PKG> |
Emerge-C <PKG> |
Update package list |
|
Pisi Update-Repo |
Emerge -- Sync | layman-s [for added repositories] |
Update System |
Conary updateall |
Pisi upgrade |
Emerge-nuda world |
List sources |
|
Pisi list-Repo |
Layman-l |
Add Source |
|
Pisi add-repo <Name> <path> |
Layman- |
Remove Source |
|
Pisi remove-repo <Name> |
Layman-d |
Search package |
Conary query <PKG> |
Pisi search <PKG> |
Emerge -- search |
List Installed packages |
Conary Query |
Pisi list-Installed |
CAT/var/lib/portage | more |
(Responsible editor: A6)