Command comparison of several Linux package management systems

Source: Internet
Author: User

This document describes Command Control for four Linux/BSD package management systems, including Yum, Apt, Emerge, and Ports.

Yum is used for various RPM-based releases, such as RHEL, Fedora, and Hongqi.
Apt is used for various DEB-based releases, such as Debian and Ubuntu.
Emerge is used for Gentoo.
Ports is used for FreeBSD.

The following is a simple comparison:

1. Update the Software List (Package Tree ):
Yum check-update
Apt-get update
Emerge -- sync
Cvsup-g-L 2 ports-supfile & portsdb-Uu

2. Install a package:
Yum install <package_name>
Apt-get install <package_name>
Emerge <package_name>
Portinstall <package_name>

3. delete a package:
Yum remove <package_name>
Apt-get remove <package_name>
Emerge -- unmerge <package_name>
Pkg_delete <package_name>

4. query the information of a package:
Yum info <package_name>
Apt-cache showpkg <package_name>
Emerge-vp <package_name>
Pkg_info <package_name>

5. Upgrade all software:
Yum-y update
Apt-get upgrade
Emerge-u world
Portupgrade-

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.