Gentoo and Ubuntu package management command comparison set

Source: Internet
Author: User

From: http://blog.csai.cn/user1/47700/archives/2010/42562.html

Apt-Get and emerge are the package management system commands of Debian and Gentoo respectively. They are learning how to install and use Gentoo recently. Find the command comparison record:

Update source/portage tree
Reference
# Apt-Get update
# Emerge -- sync

Update System
Reference
# Apt-Get upgrade
# Emerge -- Update System

Update the entire system
Reference
# Apt-Get dist-Upgrade
# Emerge -- Update world

Query software packages in the source/portage tree
Reference
# Apt-cache search keyword
# Emerge -- search keyword

View package details
Reference
# Apt-Cache show package/apt-Cache showpkg package
# Emerge-udpv package (u = udpate, D = debug, P = pretend, V = verbose)

Displays the packages on which the software package is installed.
Reference
# Apt-Cache depends package
# Emerge -- emptytree -- pretend package

Install/compile the installation package
Reference
# Apt-Get install package
# Emerge package

Delete a software package
Reference
# Apt-Get remove package
# Emerge unmerge package/emerge-C package

Clear unused software packages in the system
Reference
# Apt-Get Clean & apt-Get autoclean
# Emerge -- depclean

Packages already installed in the query system
Reference
# Dpkg-l
# Equery L (gentoolkit package needs to be installed)

Related Article

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.