A comprehensive guide to Yum

You have an RPM-based (Fedora, CentOs, etc.) version of Linux running on your computer. You need to know how to install and upgrade packages. And every once in a while, you wonder how can one do a system update.

So let’s get started. All that GUI stuff is great, but let’s down to the nitty gritty. Start up your dusty terminal!

– Before doing anything, remember to enter administrator mode:

su –
Enter admin mode

yum check-update
Make sure to update the package list.


yum -y install package_name
Install a new package

The -y flag allows unattended installation. Definitely remove it if you want to see and control the whole process.

yum update package_name
To update a package

yum update package_name1 package_name2 package_name3
To update several packages at once

yum update
To update all installed packages

yum search package_name
To search for a package


yum  remove package_name
To remove a package

yum remove package_name1 package_name2 package_name3
To remove multiple packages

Getting Information

yum list installed
To list all install packages

yum list installed | grep -i package_name
To search for specific packages

yum info package_name
To get info on a package

yum list updates
To show packsge with available updates

Package Maintenance

yum clean packages
To delete all cached packages

yum clean oldheaders
To remove old header the system no longer uses

yum clean all
To remove cached packages and old headers


To learn more about yum:

man yum

There is a guide to more advanced Yum commands here.

It is recommended (well, by me) that your system gets updated periodically, if it’s not already set to do that automatically. Linux is solid but the user is usually the weak link, so make sure you get into good habit of maintaining an up-to-date machine.


2 thoughts on “A comprehensive guide to Yum

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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s