public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] rebuild /usr/lib
@ 2006-10-18 20:07 Stuart Howard
  2006-10-19 15:07 ` Alan McKinnon
  2006-10-19 15:37 ` Mark
  0 siblings, 2 replies; 7+ messages in thread
From: Stuart Howard @ 2006-10-18 20:07 UTC (permalink / raw
  To: gentoo-user

Hey folks,

In advance I admit I have done a dumb! thing [by accident] I have
managed to delete most of /usr/lib/ and my backup does not seem to be
wholesome .
Could someone suggest a method for rebuilding the libraries?
I was thinking about a liveCD plus chroot but I would like some advice
before i attempt it and waste a day.

regards
stu
-- 
"There are 10 types of people in this world: those who understand
binary, those who don't"

--Unknown
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] rebuild /usr/lib
  2006-10-18 20:07 [gentoo-user] rebuild /usr/lib Stuart Howard
@ 2006-10-19 15:07 ` Alan McKinnon
  2006-10-19 15:37 ` Mark
  1 sibling, 0 replies; 7+ messages in thread
From: Alan McKinnon @ 2006-10-19 15:07 UTC (permalink / raw
  To: gentoo-user

On Wednesday 18 October 2006 22:07, Stuart Howard wrote:
> Hey folks,
>
> In advance I admit I have done a dumb! thing [by accident] I have
> managed to delete most of /usr/lib/ and my backup does not seem to be
> wholesome .
> Could someone suggest a method for rebuilding the libraries?
> I was thinking about a liveCD plus chroot but I would like some
> advice before i attempt it and waste a day.

Ouch.

Did you nuke python as well? If so, you are in deep shit and I would 
suggest you get some kind soul to tar.gz a working python for you that 
you can untar on your machine. You basically need a toolchain, portage, 
python and maybe a few other things installed and working so you can

emerge -e world

and fix everything in one 48 hour process. I wouldn't even try identify 
what is missing and what isn't, my system lists 35000+ files 
in /usr/lib, so rebuilding world is probably the least painful fix

alan
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] rebuild /usr/lib
  2006-10-18 20:07 [gentoo-user] rebuild /usr/lib Stuart Howard
  2006-10-19 15:07 ` Alan McKinnon
@ 2006-10-19 15:37 ` Mark
  2006-10-19 19:29   ` Nico Schümann
  1 sibling, 1 reply; 7+ messages in thread
From: Mark @ 2006-10-19 15:37 UTC (permalink / raw
  To: gentoo-user

On 18/10/06, Stuart Howard <stuart.g.howard@gmail.com> wrote:
> Could someone suggest a method for rebuilding the libraries?

If you have a working toolchain and python, then you can utilise
emerge to rebuild the system.

If not then you will need to acquire a binary gcc/etc to work around
it. Then rebuild.

emerge -e world

At which point you should probably just go have a sleep.

Good luck
Mark
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] rebuild /usr/lib
  2006-10-19 15:37 ` Mark
@ 2006-10-19 19:29   ` Nico Schümann
  2006-10-19 20:41     ` Stuart Howard
  0 siblings, 1 reply; 7+ messages in thread
From: Nico Schümann @ 2006-10-19 19:29 UTC (permalink / raw
  To: gentoo-user

2006/10/19, Mark <znxster@gmail.com>:
> If not then you will need to acquire a binary gcc/etc to work around
> it. Then rebuild.
>
> emerge -e world

I think, after having set up the tool chain, you'd do a
emerge -e system and then
emerge -e world,
because the system packages aren't considered by the world file, are they?

Anyway, good luck.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] rebuild /usr/lib
  2006-10-19 19:29   ` Nico Schümann
@ 2006-10-19 20:41     ` Stuart Howard
  2006-10-20  2:11       ` Philip Webb
  0 siblings, 1 reply; 7+ messages in thread
From: Stuart Howard @ 2006-10-19 20:41 UTC (permalink / raw
  To: gentoo-user

Thanks for the advice folks.
As it turned out I had enough of the lib left to keep some of the
system running and I managed to copy over sufficient to get a working
connection going then after much more thrashing of the head on desk it
turned out that my backup was sufficient to get portage working pretty
well phew
I am now working on the --emptytree to restore everything properly.

stu

ps. tip of the day when spring cleaning your system watch out for
those little typos that can ruin your summer :)
pps. Just for fun it went something like this,
"rm -rf /usr/lib/libcrco.so /usr/lib/ /usr/lib/bochs /usr/lib/libcroco.co.0"




On 19/10/06, Nico Schümann <nico.schuemann@googlemail.com> wrote:
> 2006/10/19, Mark <znxster@gmail.com>:
> > If not then you will need to acquire a binary gcc/etc to work around
> > it. Then rebuild.
> >
> > emerge -e world
>
> I think, after having set up the tool chain, you'd do a
> emerge -e system and then
> emerge -e world,
> because the system packages aren't considered by the world file, are they?
>
> Anyway, good luck.
> --
> gentoo-user@gentoo.org mailing list
>
>


-- 
"There are 10 types of people in this world: those who understand
binary, those who don't"

--Unknown

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] rebuild /usr/lib
  2006-10-19 20:41     ` Stuart Howard
@ 2006-10-20  2:11       ` Philip Webb
  2006-10-20 13:36         ` Alan McKinnon
  0 siblings, 1 reply; 7+ messages in thread
From: Philip Webb @ 2006-10-20  2:11 UTC (permalink / raw
  To: gentoo-user

061019 Stuart Howard wrote:
> I am now working on the --emptytree to restore everything properly.
> ps. tip of the day when spring cleaning your system watch out for
> those little typos that can ruin your summer :)
> pps. Just for fun it went something like this,
> "rm -rf /usr/lib/libcrco.so /usr/lib/ /usr/lib/bochs /usr/lib/libcroco.co.0"

When using 'rm -f' (with or without '-r') the iron rule is 

  (1) goto the dir which contains the items to be removed
  (2) 'pwd'
  (3) 'ls <whatever>'
  (4) if <whatever> is not '*', recall that line with Up-arrow,
      backspace over 'ls' & replace with 'rm -f'
  (5) sit on hands for  >= 10 sec  while examining the results of (2 3 4) 
  (6) & only then, 'rm -f <whatever>'.
  
-- 
========================,,============================================
SUPPORT     ___________//___,  Philip Webb : purslow@chass.utoronto.ca
ELECTRIC   /] [] [] [] [] []|  Centre for Urban & Community Studies
TRANSIT    `-O----------O---'  University of Toronto
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] rebuild /usr/lib
  2006-10-20  2:11       ` Philip Webb
@ 2006-10-20 13:36         ` Alan McKinnon
  0 siblings, 0 replies; 7+ messages in thread
From: Alan McKinnon @ 2006-10-20 13:36 UTC (permalink / raw
  To: gentoo-user

On Friday 20 October 2006 04:11, Philip Webb wrote:
> When using 'rm -f' (with or without '-r') the iron rule is
>
>   (1) goto the dir which contains the items to be removed
>   (2) 'pwd'
>   (3) 'ls <whatever>'
>   (4) if <whatever> is not '*', recall that line with Up-arrow,
>       backspace over 'ls' & replace with 'rm -f'
>   (5) sit on hands for  >= 10 sec  while examining the results of (2
> 3 4)

A 10 second minimum? Gee, you're brave!

:-)

On that note, one enhancement I'd like to see to rm is a --pretend 
option. -i isn't the same thing, I'd like rm to tell me "I'm about to 
delete the following: ... " 

Anyone know of a patch that provides this?

alan

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-10-20 13:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-18 20:07 [gentoo-user] rebuild /usr/lib Stuart Howard
2006-10-19 15:07 ` Alan McKinnon
2006-10-19 15:37 ` Mark
2006-10-19 19:29   ` Nico Schümann
2006-10-19 20:41     ` Stuart Howard
2006-10-20  2:11       ` Philip Webb
2006-10-20 13:36         ` Alan McKinnon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox