Re: Fedora Core 2 lost all ability to make DB of installed rpms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2004-08-16 at 00:30, Enrique Perez-Terron wrote:
> On Sun, 2004-08-15 at 23:12, stuartb@xxxxxxxxxxxxxxxx wrote:
> > To save space I deleted all files in /var/spool/up2date and
> > /var/spool/repackage. I don't think I was in /var/lib/rpm...
> > I then did an rpm -qa and saw no rpms!
[snip]
> > I had no backups of /var   I didn't think anything important was there.
> 
> Quick, check the file /var/log/rpmpkgs, if it is there make a copy
> before it is overwritten.
> 
> The package "rpm" places a script in /etc/cron.daily/rpm, and this
> script executes "rpm -qa" (with a few additional options) and places the

If it is too late, don't cry yet, check if you have
/var/log/rpmpkgs.[1234].  Logrotate (it must be logrotate. Did you have
logrotate installed?) creates these backups once a week.

For example, on my computer, cd /var/log; ls -l rpmpkgs*
-rw-r--r--  1 root root 22960 Aug 15 04:04 rpmpkgs
-rw-r--r--  1 root root 22960 Aug 14 04:10 rpmpkgs.1
-rw-r--r--  1 root root 22952 Aug  7 04:04 rpmpkgs.2
-rw-r--r--  1 root root 22835 Jul 31 04:04 rpmpkgs.3
-rw-r--r--  1 root root 22766 Jul 24 04:05 rpmpkgs.4

You can see that there is one week between successive files. The backups
are apparently made every saturday.

Cheers,
Enrique


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux