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.


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

Reply via email to