Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Oops: rm -*rf /usr/*
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
chacha
n00b
n00b


Joined: 21 Apr 2008
Posts: 5

PostPosted: Tue Jul 08, 2008 3:59 pm    Post subject: Oops: rm -*rf /usr/* Reply with quote

Hello everyone,
I have done a big mistake: rm -rf /usr/* instead of rm -rf /usr/portage/* Therefore I have lost a big part of it, including a lot of /usr/bin/* files like find, renice. Without I cannot do any emerge, revdep-rebuild. What do you think is the best way to restore a proper /etc/bin/ directory? Take the one from the live cd? And after, how can I make sure I got everything working, every dependancy installed? Any comment will help!
Thanks a lot
_________________
Hicham Tahiri
Back to top
View user's profile Send private message
Arfrever
Bodhisattva
Bodhisattva


Joined: 29 Apr 2006
Posts: 2463
Location: 異世界

PostPosted: Tue Jul 08, 2008 4:11 pm    Post subject: Reply with quote

Full reinstallation of Gentoo would be the best.
You can preserve /home and partially /etc.
Back to top
View user's profile Send private message
chacha
n00b
n00b


Joined: 21 Apr 2008
Posts: 5

PostPosted: Tue Jul 08, 2008 6:33 pm    Post subject: Reply with quote

Well, I had an other amd64 computer with almost the same packages, so copying from it seems to be working.
Is there a command so as to reemerge ALL the packages? emerge -av world only emerge the packages that changed.
Cheers
_________________
Hicham Tahiri
Back to top
View user's profile Send private message
woZa
Guru
Guru


Joined: 18 Nov 2003
Posts: 340
Location: The Steel City - UK

PostPosted: Tue Jul 08, 2008 6:52 pm    Post subject: Reply with quote

chacha wrote:
Is there a command so as to reemerge ALL the packages? emerge -av world only emerge the packages that changed.
Cheers

Code:
emerge --emptytree world

_________________
A few months struggling with gentoo is better than a lifetime struggling with windoze!
Back to top
View user's profile Send private message
Arfrever
Bodhisattva
Bodhisattva


Joined: 29 Apr 2006
Posts: 2463
Location: 異世界

PostPosted: Tue Jul 08, 2008 6:58 pm    Post subject: Reply with quote

chacha wrote:
Is there a command so as to reemerge ALL the packages?


If you have Portage 2.2_rc1, then you can use `emerge -1 @everything`.

(With Portage >=2.2_rc2, that command should be replaced with `emerge -1 @installed`.)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum