Linux – How to get the latest list of packages

centoslinuxredhatyum

I pushed an RPM into a remote repo, but yum list doesn't 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 up to date.

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

Best 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