Find the answer to your Linux question:
Results 1 to 5 of 5
How do I remove invalid package entries from RPM? If I installed an RPM package multiple times, and then later manually deleted the files, how do I 'clean up' the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2004
    Posts
    3

    How to clean up after RPM?


    How do I remove invalid package entries from RPM?
    If I installed an RPM package multiple times, and then later manually deleted the files, how do I 'clean up' the entries in RPM?

    Thanks

  2. #2
    Linux Guru
    Join Date
    Mar 2003
    Location
    Wisconsin
    Posts
    1,907
    I think this is what you're looking for:

    Code:
    rpm --rebuilddb <options>
    http://www.rpm.org/max-rpm/s1-rpm-co...base-mode.html

    Good luck!
    Jeremy
    Registered Linux user #346571
    "All The Dude ever wanted was his rug back" - The Dude

  3. #3
    Just Joined!
    Join Date
    May 2004
    Posts
    3

    --rebuild

    I tried that, it didn't help
    I also tried the -e or --erase option. It complains that there are multiple entries with the same name.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    Mar 2003
    Location
    Wisconsin
    Posts
    1,907
    From this lenghty thread:
    http://www.linuxquestions.org/questi...hreadid=175727

    I found this:

    Code:
    sudo rpm -e -vv --allmatches --nodeps --noscripts --notriggers <name of whatever your trying to remove>
    Does that work?
    Jeremy
    Registered Linux user #346571
    "All The Dude ever wanted was his rug back" - The Dude

  6. #5
    Just Joined!
    Join Date
    May 2004
    Posts
    3
    Yes! It did!

    Thanks.
    Now to just convince everyone not to remove files that were installed by RPM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •