8 December 2014

Rebuild your new Yum repository after changing the packages

If you have done any changes to your local repository packages, adding new ones or deleting some, you can just simply update your yum sqlite metadata database for your changes to take effect, rather than creating the whole repository again which takes time if you have thousands of packages in your repository. 

Here is how we rebuild our yum repository.

1. After you are done with adding/removing packages to your local repo, then:


# createrepo --update /path/to/repo_dir

2. On the client side, you need to clean up the cached yum meta data in order to see the changes after repo rebuild:

# yum clean all

3. Now update the client yum cache 

# yum update





No comments:

Post a Comment