Fedora, CentOS | Debian, (K)Ubuntu | |
Install from a package file | rpm -i (package file) | aptitude -S (package file) -i |
Install/Update from a package file | rpm -U (package file) | dpkg -i (package file) |
Update from a package file | rpm -F (package file) | aptitude -S (package file) -u |
Downgrade a package | rpm -U --oldpackage (package file) | dpkg --force-downgrade -i (package name) |
Reinstall package | rpm -Uvh --replacepkgs (package file) | aptitude --reinstall install (package name) |
Remove a package | rpm -e (package name) | dpkg -r (package name) |
Remove a package (Installed via repositories) | yum -C remove (package name) | aptitude remove (package name) |
Update package information | yum makecache | aptitude update |
Update current installed packages | yum -C update | aptitude safe-upgrade |
Install repository package | yum -C install (package name) | aptitude install (package name) |
Upgrade to next distribution release | rpm -Uvh *****-release-n-n.noarch.rpm yum upgrade | aptitude dist-upgrade |
Search repository packages | yum -C list | grep (string) | aptitude search (regex) |
List installed packages | rpm -qa or yum list installed | dpkg -l |
Find the package a file belongs to | rpm -qf (file name) | dpkg -S (file) or apt-file find (file) |
List the files that belong to a package | rpm -ql (package name) | dpkg -L (package name) |
Get package details | yum -C info (package name) | aptitude show (package name) |
Clean cache | yum clean all | aptitude clean |
Search packages by name | yum -C search (string) | apt-cache search (string) |
Any piece of knowledge I acquire today has a value at that moment proportional to my skill to deal with it. Tomorrow, when I am more skilled, that same knowledge will have higher value.
Saturday, April 21, 2007
Linux Package Manager Quick Reference
Labels:
Tips
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment