Search This Blog

Wednesday, February 22, 2012

YUM / RPM cheat


As root (or sudo):

YUM


To update your system:
yum update

To install a package:
yum install PACKAGE

To search a package:
yum search PACKAGE

To have more information for a specific package (version, architecture, etc):
yum info PACKAGE

To clean a "fucked up" yum conf:
yum clean all


RPM


What package "hold" a command
rpm -qf CMD

List packages
rpm -qa

Details of the package
rpm -qi PACKAGE

Erase a package. Give dependencies that block PACKAGE to be removed too)
rpm -e PACKAGE

Details of what provides a package
rpm -q --provides PACKAGE

Upgrade or install a package
rpm -Uvh PACKAGE

Upgrade a package (if already installed)
rpm -F PACKAGE

No comments:

Post a Comment