Compilation of most common commands dealing with package management.
up2date
Installup2date -i package
Show packages groupsup2date --show-groups
Install a package groupup2date -i @GROUP_NAME (e.g. : up2date -i @GNOME Desktop Environment)
up2date sources specified under /etc/sysconfig/rhn/sources
yum
Installyum install package
Get infoyum info package
Removeyum erase package
Check if update available
yum check-update
Find package providing the fileyum whatprovides /some/file
Clean all yum cachesyum clean all
Yum sources specified under /etc/yum.repos.d/
rpm
Installrpm -ihv package.rpm
Reinstall an already installed packagerpm -ihv replacepkgs package.rpm
Updaterpm -Uhv package.rpm
Remove (–nodeps will break dependencies)rpm -e package (--nodeps)
Find dependencies or find which package a file belongs torpm -q --redhatprovices missing-dep-file.so.2
Find which package owns a filerpm -qf /usb/bin/vim
Get info. use -qip if getting info from a rpm packagerpm -qi(p) package(.rpm)
List packages installedrpm -qa
rpm -qa --las
0 comments:
Post a Comment