Advertisement
Guest User

Blow up AIX RPM database

a guest
Jan 17th, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. We can clean & recreate the fresh rpm database, but it won't remove the files installed by rpm packages.
  2. But these files can be overwritten by next install of same rpm package.
  3. In this case best possible solution is to figure out the cause and resolve it.
  4.  
  5. Anyway, here are the steps to clean rpm database and recreate it freshly.
  6.  
  7. cd /var/lib/rpm
  8. mkdir __db1
  9. mv *.rpm __db1 <= Take backup of current rpm database
  10. rpm __initdb /var/lib/rpm
  11. updtvpkg
  12. rpm -ivh <pkg>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement