How do I get the latest list of packages?

resultsway asked:

I pushed an rpm into a remote repo, but yum list doesnt yet show the package yet.
I verified the above by going to the remote website http:repo…

when I do yum update, it says no packages to update all are uptodate.

How do I tell yum to pull a new list from the remote?


My answer:

By default yum caches metadata for its repositories (the default time is 90 minutes but can be changed).

If you erase the cached metadata, then yum will fetch it again on its next run.

yum clean metadata

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.