Linux package Management Quick query table

Source: Internet
Author: User
Tags yum repolist

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.