2011/01/31

dpkg & rpm



install

rpm
dpkg
specified package
rpm -i pkgfile.rpm
dpkg -i pkgfile.deb
query
display
rpm
dpkg
all package name installed
rpm -qa
dpkg -l (lowercase L)
package files
rpm -ql pkgname  (lowercase L)
dpkg -L pkgname
file belong to
rpm -qf /path/to/file
dpkg -S /path/to/file
package info
rpm -qip pkgfile.rpm  (package info)
rpm -qlp pkgfile.rpm  (lowercase L, all files)
dpkg -I pkgfile.deb  (upper case I )
dpkg -c pkgfile.deb
if installed
rpm -q pkgname  (package name)
rpm -qi pkgname  (package info)
dpkg -l pkgname  (lowercase L, simple list)
dpkg -s pkgname  (show details)
dpkg -p pkgname  (show details)
remove

rpm
dpkg
specified package
rpm -e pkgname
dpkg -r pkgname  (configuration remain)
dpkg -P  pkgname  (remove all)

alien deals with (installation & conversion) .deb, rpm, slp and.tgz

apt-get install alien
  • install RPM package: alien -i quota-3.12-7.i386.rpm
  • make into deb package format: alien -d quota-3.12-7.i386.rpm
  • make into rpm package: alien -r quota_3.12-6_i386.deb

沒有留言:

張貼留言