[Centos] confession

Matt Shields mattboston at gmail.com
Tue Dec 7 20:59:27 UTC 2004

Here are a few starters commands, these are the most common.

yum check-update (check to see if any packages need updating)

yum update  (updates any/all packages that need it)
yum update packagename1 packagename2 (only update packagename1 & 2)

yum install packagename1 (installs packagename)
yum install packagename (same as above but does not prompt you for confirmation)

yum list available | grep -i packagename  (checks to see if
packagename is available at yum server)

yum search packagename (useful if you're not sure the name of the
package, ie. httpd vs apache, RedHat names the Apache package httpd)

yum info packagename (similar to rpm -qi, give you info on packagename)

yum upgrade (I've only used this once, upgrading a test system running
RHEL 3ES to CentOS, seems like if you point your Yum conf to a
different distro's yum repo it will upgrade to that version, probably
also useful for upgrade from CentOS2 to CentOS3)

For install, update, and upgrade, you can pass it the -y variable and
it won't prompt you to confirm your actions.  You can also customize
your yum.conf to exclude certain packages from update/upgrade like the
kernel.  You can also specify that some packages(again kernel) only
get installed and not upgraded.

Matt Shields

On Tue, 07 Dec 2004 11:55:59 -0800, C.M. Connelly <cmc at math.hmc.edu> wrote:
> Beau,
> Most everything you could need to know is in the man pages for
> yum.  If you have specific questions not answered by the man
> pages, please feel free to ask me for my experiences, Seth (who
> wrote the thing so should be able to answer *anything* about it),
> or the list.
> I'm actually a Debian developer myself, but we're using CentOS at
> work, and I find yum quite comfortable (and a good deal less
> complex than apt for setting up and maintaining local
> repositories).
> I've recently implemented the use of the yumgroups.xml file to
> define groups of packages for installation on different classes of
> machines.  It works very well (provided you make sure that all the
> important files are actually readable!).
>    Claire
> --
> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
>   Claire Connelly                              cmc at math.hmc.edu
>   Systems Administrator                          (909) 621-8754
>   Department of Mathematics                 Harvey Mudd College
> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

More information about the CentOS mailing list