Search:  
Gentoo Wiki

Portage_for_RPM_Users

This article is part of the Miscellaneous series.
Definitions Listings Licenses Other
Merge-arrows.gifIt has been suggested that this article be Merged into one article with TIP Converting from or to a non-gentoo distro.    (Discuss)

This is list of RPM commands used to administer RPM/URPMI based distros and the equivalent commands using portage

Note: qpkg is now deprecated and has been removed from gentoolkit. It has been supplanted with equery.

Action RPM / DEB Command Portage Command Notes
Install Package
urpmi pkgname

or

apt-get install pkgname

or

yum install pkgname    
emerge pkgname 
none
Update package lists
apt-get update

or

urpmi.update -a
emerge --sync 
none
Upgrade all packages to the latest versions
apt-get upgrade

or

urpmi --auto-select

or

yum update
emerge --update --deep world

or

emerge -uD world 
none
Identify package owning file
rpm -qf filename

or

dpkg -S filename
equery belongs filename

or

epm -qf  filename
requires gentoolkit

last requires epm

Search for package
urpmq search

or

apt-cache search search
emerge -s search 

or

esearch search

or

eix search
last requires eix
Build a binary package
rpm --rebuild pkg.src.rpm

or

rpmbuild pkg.spec

or

apt-get -b source pkg
quickpkg pkgname
requires gentoolkit
Verify a package
rpm -V pkg

or

debsums pkg
equery check pkg
requires gentoolkit
List files in a package
rpm -ql pkg

or

dpkg -L pkg
equery files pkg

or

epm -ql pkg
requires gentoolkit

last requires epm

List dependencies of a package
rpm -qp --requires pkg

or

apt-cache depends pkg
equery depgraph pkg
requires gentoolkit
Retrieved from "http://www.gentoo-wiki.info/Portage_for_RPM_Users"

Last modified: Thu, 31 Jul 2008 06:17:00 +0000 Hits: 19,283