Gideon's notes about technology

Semiconductors, Linux, security and robotic notes

Thursday, July 03, 2008

yum database clean up

Sometimes when yum is not updating, or simply not synchronized with the repository, it's a good idea to clean up the cache database and fetch a new list from the server.

  1. yum clean all

  2. mv /var/cache/yum/ /tmp/

  3. mv /var/lib/rpm/__db* /tmp/

  4. rpm --rebuilddb


Somehow I tend to move the files to /tmp/ rather then just remove them, since the rm -rf command is the No. 1 enemy of idiocity.
Posted by Gideon at 4:50 AM 6 comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Linux tips and tricks
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2018 (2)
    • ►  March (2)
  • ►  2017 (7)
    • ►  October (1)
    • ►  August (1)
    • ►  June (1)
    • ►  March (2)
    • ►  February (2)
  • ►  2016 (6)
    • ►  December (3)
    • ►  November (2)
    • ►  October (1)
  • ►  2015 (1)
    • ►  March (1)
  • ►  2014 (4)
    • ►  May (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2013 (16)
    • ►  September (1)
    • ►  August (3)
    • ►  July (1)
    • ►  February (5)
    • ►  January (6)
  • ►  2012 (11)
    • ►  August (5)
    • ►  July (2)
    • ►  June (2)
    • ►  February (2)
  • ►  2011 (6)
    • ►  February (5)
    • ►  January (1)
  • ►  2010 (1)
    • ►  December (1)
  • ►  2009 (2)
    • ►  October (2)
  • ▼  2008 (6)
    • ►  November (1)
    • ►  September (3)
    • ►  August (1)
    • ▼  July (1)
      • yum database clean up
  • ►  2007 (2)
    • ►  July (1)
    • ►  June (1)
Awesome Inc. theme. Powered by Blogger.