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)