[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: RPM problem....
- From: Bill Crawford <rpm billemon org uk>
- To: rpm-list redhat com
- Cc: zen_sorcerer hotmail com
- Subject: Re: RPM problem....
- Date: Wed, 27 Mar 2002 17:03:55 +0000 (GMT)
On Wed, 27 Mar 2002, Brian Harvell wrote:
> On Sun, 24 Mar 2002, Zen Sorcerer wrote:
>
> >
> > I screwed up big time. I accidentally deleted /var/lib/rpm!!!
> > aaaahhhh....now I can't install or remove apps with rpm.
> >
> > I'm running RH7.2
> >
> > Please help.....
> >
>
>
> Something like this should work. Depending on how long it has been you may need
> to use one of the older rpmpkgs.[0-9] files if the one is empty. You will also
> need a copy of all the rpms you have installed on your system.
>
>
> mkdir /var/lib/rpm
> rpm --initdb
> foreach moo (`cat /var/log/rpmpkgs`)
> rpm -i --nodeps --justdb /path/to/rh7.2/rpms/$moo
rpm -i --justdb --nodeps --noscripts --notriggers
> end
> rpm -qa
>
> Brian
>
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]