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:
Enter admin mode
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
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
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
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:
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.