Updating yum repositories
It allows users and system administrator to easily install, update, remove or search software packages on a systems.
It was developed and released by Seth Vidal under GPL (General Public License) as an open source, means anyone can allowed to download and access the code to fix bugs and develop customized packages.
Finished Dependency Resolution Dependencies Resolved ==================================================================================================== Package Arch Version Repository Size ==================================================================================================== Removing: firefox i686 10.0.6-1.el6.centos @updates 23 M Transaction Summary ==================================================================================================== Remove 1 Package(s) Reinstall 0 Package(s) Downgrade 0 Package(s) Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Erasing : firefox-10.0.6-1.el6.centos.i686 1/1 Removed: firefox.i686 .0.6-1.el6.centos Complete!
Let’s say you have outdated version of My SQL package and you want to update it to the latest stable version.
In this article, we will learn how to install, update, remove, find packages, manage packages and repositories on Linux systems using YUM (Yellowdog Updater Modified) tool developed by Red Hat.
The example commands shown in this article are practically tested on our Cent OS 6.3 server, you can use these material for study purpose, certifications or just to explore ways to install new packages and keep your system up-to-date.
Using this option will force yum to download the sqlite metadata the next time it is run, or recreate the sqlite metadata if using an older repo.
yum clean rpmdb Eliminate any cached data from the local rpmdb.
yum clean plugins Tell any enabled plugins to eliminate their cached data.
# yum list openssh Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: * epel: * extras: * rpmforge: * updates: Installed Packages openssh.i386 4.3p2-72.el5_6.3 installed Available Packages 4.3p2-82.el5 base If you don’t remember the exact name of the package, then use search function to search all the available packages to match the name of the package you specified.
For example, to search all the packages that matches the word .
This means yum will revalidate the cache for each repo. How‐ ever if the cache is still valid, nothing significant was deleted.