View previous topic :: View next topic |
Author |
Message |
chacha n00b
Joined: 21 Apr 2008 Posts: 5
|
Posted: Tue Jul 08, 2008 3:59 pm Post subject: Oops: rm -*rf /usr/* |
|
|
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 |
|
|
Arfrever Bodhisattva
Joined: 29 Apr 2006 Posts: 2463 Location: 異世界
|
Posted: Tue Jul 08, 2008 4:11 pm Post subject: |
|
|
Full reinstallation of Gentoo would be the best.
You can preserve /home and partially /etc. |
|
Back to top |
|
|
chacha n00b
Joined: 21 Apr 2008 Posts: 5
|
Posted: Tue Jul 08, 2008 6:33 pm Post subject: |
|
|
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 |
|
|
woZa Guru
Joined: 18 Nov 2003 Posts: 340 Location: The Steel City - UK
|
Posted: Tue Jul 08, 2008 6:52 pm Post subject: |
|
|
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 |
|
|
Arfrever Bodhisattva
Joined: 29 Apr 2006 Posts: 2463 Location: 異世界
|
Posted: Tue Jul 08, 2008 6:58 pm Post subject: |
|
|
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 |
|
|
|