How strong is your server kung fu?

Yum commands

Yum is word that may inspire fear in hearts of many noobie server admins because they don’t understand what it does and fear it make break their server if used.

Yum stands for “Yellow Updater, Modified” and is similar to commands apt-get and up2date in function.

Here are some common Yum commands used while you are logged in as root.

# yum upgrade
# yum update
# yum install bind

Yum usage:

yum [options] <update | upgrade | install |
info | remove | list |clean | provides |
search | check-update | groupinstall |
groupupdate | grouplist>

Yum Options
-c [config file] - specify the config file
to use

-e [error level] - set the error logging
level

-d [debug level] - set the debugging level

-y answer yes to all questions

-t be tolerant about errors in package
commands

-R [time in minutes] - set the max amount of
time to randomly run in.

-C run from cache only - do not update the cache

--installroot=[path] - set the install root
(default '/')

--version - output the version of yum

-h, --help this screen

Written by admin on June 24th, 2008 with comments disabled.
Read more articles on Centos and Linux.