[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Fedora Core 2 lost all ability to make DB of installed rpms
- From: Enrique Perez-Terron <enrio online no>
- To: RPM Package Manager <rpm-list redhat com>
- Cc: stuartb thelinuxlink net
- Subject: Re: Fedora Core 2 lost all ability to make DB of installed rpms
- Date: Mon, 16 Aug 2004 00:46:01 +0200
On Mon, 2004-08-16 at 00:30, Enrique Perez-Terron wrote:
> On Sun, 2004-08-15 at 23:12, stuartb@thelinuxlink.net 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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]