Updating Red Hat from the command line using Yum

Normally, I just:

sudo yum check-update
sudo yum update
sudo reboot

Note: A reboot might not be necessary depending on what you are updating.

If yum is having problems resolving some dependencies, or you get the error: “[Errno -1] Metadata file does not match checksum”, try running the command below, then re-running the commands above.

sudo yum clean all

If a “yum clean all” doesn’t fix it, it might be that your satellite server just needs to re-sync with RedHat’s servers. Wait a day and try it again.

If the your system is having trouble communicating with the Red Hat server, you probably need to:

sudo /usr/sbin/rhnreg_ks --force --activationkey=XXXXXXXXXXXXXXXXXXXX

For University of Washington, XXX can be found here.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.