Jump to Navigation

131 - Can not update by yum (RedHat)

The Yellowdog Updater, Modified (YUM) is an open-source command-line package-management utility for RPM-compatible Linux operating systems
and has been released under the GNU General Public License. Suddenly you can not update any packaged by yum.
So you need to clear yum cache with the following command. Probably after thet, you would undate old packages.

During its normal use yum creates a cache of metadata and packages. This cache can take up a lot of space.
The yum clean command allows you to clean up these files. All the files yum clean will act on are normally stored in /var/cache/yum.

* Clean all cached files from any enabled repository. Useful to run from time to time to make sure there is nothing using unnecessary space.

# yum clean all

* This cleans up any cached packages in any enabled repository cache directory.

# yum clean packages

* This cleans up any xml metadata that may have been cached from any enabled repository.

# yum clean metadata

* Yum will create or download some sqlite database files as part of its normal operation.
This command clean up the cached copies of those from any enabled repository cache.

# yum clean dbcache

 

Linux:


Main menu 2

Story | by Dr. Radut