Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- We can clean & recreate the fresh rpm database, but it won't remove the files installed by rpm packages.
- But these files can be overwritten by next install of same rpm package.
- In this case best possible solution is to figure out the cause and resolve it.
- Anyway, here are the steps to clean rpm database and recreate it freshly.
- cd /var/lib/rpm
- mkdir __db1
- mv *.rpm __db1 <= Take backup of current rpm database
- rpm __initdb /var/lib/rpm
- updtvpkg
- rpm -ivh <pkg>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement