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

Re: RPM problem....



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] []