Re: RPM Database broken

From: Matthew Saltzman (mjs_at_ces.clemson.edu)
Date: 10/20/05

  • Next message: Ferguson, Michael: "RE: Snort / IDS Help needed"
    Date: Thu, 20 Oct 2005 07:58:48 -0400 (EDT)
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    
    

    On Thu, 20 Oct 2005, Francois Massonneau wrote:

    > Le Jeudi 20 Octobre 2005 07:46, Gilboa Davara a écrit :
    >> First, please do not repost your problem repeatedly.
    >> While I understand that you are in a jam, this is no reason to report
    >> the same message for the 4'th time. now.
    >
    > Yes, I saw that. really sorry, but I got a mailer problem.
    >
    >> Second, can you get a list of what you installed by using rpm -qa and/or
    >> kickstart file?
    >
    > rpm -qa gives me nothing.
    > I read the archives of the rpm fedora mailing list, and it seems I do not have
    > a real solution. SOmeone gave a script once, but I don't know how it can fix
    > my pb. A fresh install seems my only way out. I'm gonna wait a little bit
    > more if someone has a good solution... Thanks and sorry again for the
    > multiple posts. Francois

    If you ran rpm --initdb (as you indicated in another post), then you
    completely emptied your RPM DB.

    Do you have /var/log/rpmpkgs*? If so, you could try the following:

    (1) Download a complete set of RPMs listed in your last good rpmpkgs log
    and place them in a directory.

    (2) Create a script that, for each file in /var/log/rpmpkgs, executes

             rpm -U --justdb <filename>

    (3) If you hadn't added, deleted, or updated any RPMs since the date of
    the log file you used, you should be done. Otherwise, add, delete, or
    update the remaining packages by hand using the --justdb option.

    Maybe somebody could suggest a shortcut. I don't know if yum can help
    here or not.

    -- 
     		Matthew Saltzman
    Clemson University Math Sciences
    mjs AT clemson DOT edu
    http://www.math.clemson.edu/~mjs
    
    

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Ferguson, Michael: "RE: Snort / IDS Help needed"

    Relevant Pages

    • Re: RPM Database broken
      ... On Thu, 20 Oct 2005, Francois Massonneau wrote: ... A dump of the RPM db is done nightly, ... So rpmpkgs is the result of the last time cron.daily was run, ... it may indicate an RPM in the database ...
      (Fedora)
    • Re: RPM Database broken
      ... On Thursday 20 October 2005 02:15, Francois Massonneau wrote: ... It looks to me as if yum (or python) is having some issues itself. ... You could try reinstalling yum with rpm. ...
      (Fedora)
    • Re: duplicate packages after up2date failure
      ... >> pair from the database and then run up2date, which should upgrade ... %postun scriptlet fail. ... it appears that the new RPM is ... Clemson University Math Sciences ...
      (Fedora)
    • Watch out for new nfs-utils update!
      ... leaving both versions installed. ... I ended up having to remove both RPM, ... Matthew Saltzman ... Clemson University Math Sciences ...
      (Fedora)
    • Re: FC6 equivalent to Windows System Restore
      ... needing to reinstall from scratch ... {rpm -qa>packages.2006-12-whenever.txt}. ... In a standard install, this information is saved by a cron job in /var/log/rpmpkgs. ... Clemson University Math Sciences ...
      (Fedora)