On Tuesday 15 January 2002 02:23 am, you wrote:
> On Mon, 14 Jan 2002, Ric Tibbetts wrote:
> > Mark D'voo wrote:
> > > I just deleted my /usr/local/share directory, how do I recover with
> > > reiserfs
> >
> > Got a good backup?
> > That's your only hope.
>
> One other possible option is to use RPM to replace the files that were
> lost. On my system there are only a few RPMs that place files in
> /usr/local/share.
>
> You could do an rpm -qa to get a list of all files, use this list to
> create a database of files owned by package, then look through the
> database for the package name. E.g.
>
> rpm -qa > outfile
> for item in `cat outfile`
> do
>   rpm -ql $item >$item.packagelist
> done
>
> grep /usr/local/share *.packagelist
>
> This will return the packages that place files in /usr/local/share.
> Using those package names:
>
> rpm --replacepkgs -ivh name_of_package
>
>
> Again, not many of the RPM packages on my system have files in that
> directory.

i dont' use rpms, they are the devil, I have a backup of all the source, but 
I must rebuild it :(, guess i'll be busy compiling for the next couple hours

mark


-- 
  2:58pm  up  6:59,  3 users,  load average: 3.61, 1.73, 1.02

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to