Package Managers

RPM
Install package:
rpm -i
Remove package:
rpm -e
Upgrade package:
rpm -U
Querying:
rpm -q
Info
rpm -qi

YUM
Install package:
yum install
Remove package:
yum remove
Upgrade package:
yum update
e.g. yum update 'vi*'
Upgrade entire system:
yum update
List package(s)*:
yum list
yum list
Package info*:
yum info

Repository directory:
/etc/yum.repos.d
Yum configuration file:
/etc/yum.conf

To refresh available repos:
$ yum repolist

Clean local yum cache database:
yum clean all

Build cache for enabled repos:
yum makecache

* you can use wildcards

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s