Linux package Management Quick query table

Source: Internet
Author: User
Tags arch linux 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

Reference

  • Apt usage reference
  • Dpkg instructions for Quick Reference
  • Pacman ── Arch Linux package management tool

Thanks for the article from LinuxToy: Linux package Management Quick query table.

Related Articles]

  • Example Description: Implementation of local YUM source in RHEL5
  • Use yum in Fedora8 to install the RPM package

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.