Difference between revisions of "Package managers"
(created) |
m (added dpkg -S) |
||
Line 33: | Line 33: | ||
! Which package a ''file'' belongs to? | ! Which package a ''file'' belongs to? | ||
|| <code>rpm -qf ''file''</code> | || <code>rpm -qf ''file''</code> | ||
− | || <code>- | + | || <code>dpkg -S ''file''</code> |
|| <code>equery belongs ''file''</code> | || <code>equery belongs ''file''</code> | ||
|} | |} |
Revision as of 15:59, 13 November 2007
With OpenVZ, you can run many different Linux distributions on a single box. One particular thing in which distributions differ is package management. This article summarizes how to perform various common package management tasks on a different distributions.
Feel free to add the missing pieces
Action | RPM RHEL, Fedora, CentOS, Mandrake, ... |
DEB Debian, Ubuntu |
Ebuild Gentoo, Sabayon |
---|---|---|---|
Basic queries | |||
List of all installed packages | rpm -qa
|
dpkg -l
|
equery list
|
List of installing packages matching substr | rpm -qa \*substr\*
|
dpkg -l \*substr\*
|
equery list substr
|
Basic information about an installed package | rpm -qi package
|
dpkg -p package
|
-???-
|
List of files in a given package | rpm -ql package
|
dpkg -L package
|
equery files package
|
Which package a file belongs to? | rpm -qf file
|
dpkg -S file
|
equery belongs file
|