Because of portage problems, i encoutered few weeks ago, I decided to unmerge the portage and install it again. i run this command; emerge --unmerge portage The system was saying that important files will be deleted, i decided to continue anyway. Afterwards I realized that I cannot run the emerge command anymore. If I try to run it, i can read this: zsh: command not found: emerge if I try this man emerge i get: No manual entry for emerge could somebody tell me how to reinstall portage in a proper and efficient way and get emerge back. I tried to google it, unfortunatelly results were not really satysfying. thanks in advance dominik Reproducible: Didn't try Steps to Reproduce: 1.emerge --unmerge portage 2.emerge portage (doesn't work) 3. Actual Results: /usr/bin/emerge is gone. man emerge doesn't work neither. if i run emerge in the terminal, i have this: zsh: command not found: emerge Expected Results: i didn't know that we cannot unmerge the portage. i work with a iBook G4 - ppc, i have a dual boot.
Try that: http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml
You should be fine after you reinstall portage by hand as described in the link above. Perhaps we should add a safety net that disallows portage from uninstalling itself since it doesn't seem like it could ever possibly be the right thing to do.
It's fixed in svn r11756 to behave like this: # emerge -C portage * Not unmerging package sys-apps/portage-2.2 since there is no valid * reason for portage to unmerge itself. >>> No packages selected for removal by unmerge
This has been released in 2.2_rc13.
http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml the method described bellow works fine, the only thing is that i cannot make it work with portage-2.2_rc13 but with portage-2.1.4.5 i will have to try it again. thanks a lot for your help guys.