Yum cache regeneration¶
Yum cache regeneration is the process of creating a new local cache of metadata and package data after modifying the repository configuration.^[600-developer-docker-yum-aliyun.md]
In the context of switching to a new source, such as the Aliyun mirrors, running the cache generation command allows the package manager to read the newly downloaded repository file and update the local database of available software.^[600-developer-docker-yum-aliyun.md]
Usage¶
To regenerate the cache, the following command is used^[600-developer-docker-yum-aliyun.md]:
yum makecache
This step is typically performed immediately after downloading a new CentOS-Base.repo file to ensure the changes take effect^[600-developer-docker-yum-aliyun.md].
Related Concepts¶
- [[Yum]]
- [[Package Management]]
Sources¶
600-developer-docker-yum-aliyun.md