Reggae From Around The World. Catch the Vibes!
To clear YUM cache you need to be logged in to the server as root user and then execute following commands. 1) Clean all the cached packages located in the enabled repository cache directory. 1 yum clean packages 2) Delete the package headers. 1 yum clean headers 3) Delete metadata of all the enabled repository. 1 yum clean metadata fileslib. Yum is implemented as libraries in the Python programming language, with a small set of programs that provide a command-line interface. GUI-based wrappers such as yumex also exist. How to clear the yum cache: When a package is downloaded, installed and is removed there is a chance that the package may still be saved/stored in the yum's cache.
Again, wait for YUM to respond and when ready, type the following command to remove any cached database files: yum clean dbcache Following this, you will want to clean all the files to confirm the preceding instructions and to ensure that unnecessary disk space is not used. To do this, type the following line: yum clean all
1 Answer Sorted by: 3 You're doing it the correct way. The way you want it, is not implemented in Ansible. From the Docs: "The yum module does not support clearing yum cache in an idempotent way, so it was decided not to implement it, the only method is to use command and call the yum command directly, namely 'command: yum clean all', issue " Share
man yum wrote: makecache. Is used to download and make usable all the metadata for the currently enabled yum repos. If the argument " fast " is passed, then we just try to make sure the repos are current (much like "yum clean expire-cache"). In other words: nothing special.
Check out the Reggae Nation playlist on Surf Roots TV! Featuring the hottest music videos from Jamaica and worldwide. Download the Surf Roots TV App on Roku, Amazon Fire, Apple TV, iPhone & Android
© 2025 Created by Reggae Nation.
Powered by
You need to be a member of Reggae Nation to add comments!
Join Reggae Nation