/[gentoo]/xml/htdocs/proj/en/portage/doc/manually-fixing-portage.xml
Gentoo

Diff of /xml/htdocs/proj/en/portage/doc/manually-fixing-portage.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.4
57cd /root 57cd /root
58mkdir portage-recover 58mkdir portage-recover
59cd portage-recover 59cd portage-recover
60tar xfj /usr/portage/distfiles/portage-2.1-r2.tar.bz2 60tar xfj /usr/portage/distfiles/portage-2.1-r2.tar.bz2
61</pre> 61</pre>
62<p>After you have done this it's just a matter of replacing the python and bash 62<p>After you have done this it's just a matter of replacing the python and bash
63files of your existing installation with the ones from the tarball (in most cases 63files of your existing installation with the ones from the tarball (in most cases
64anyway). To do so please run:</p> 64anyway). To do so please run:</p>
65<pre caption="replacing installed files"> 65<pre caption="replacing installed files">
66cd /root/portage-recover/portage-2.1-r2 66cd /root/portage-recover/portage-2.1-r2
67cp -R pym bin /usr/lib/portage/ 67cp -R pym bin /usr/lib/portage/
68</pre> 68</pre>
69<p>Now you should have a working portage install again. To ensure a consistent 69<p>Now you should have a working portage install again. To ensure a consistent
70system state however you should now run <c>emerge sys-apps/portage</c> again 70system state however you should now run <c>emerge sys-apps/portage</c> again
71immediately.</p> 71immediately.</p>
72<p>If you get a <c>command not found</c> error message when you try to run
73<c>emerge</c> you have to recreate the symlink:</p>
74<pre caption="recreating the emerge symlink">
75ln -s ../lib/portage/bin/emerge /usr/bin/emerge
76</pre>
72<p>If these steps didn't work for you your problem is likely not a broken portage 77<p>If these steps didn't work for you your problem is likely not a broken portage
73installation but something else beyond the scope of this document. Please recheck 78installation but something else beyond the scope of this document. Please recheck
74the <uri link="common-problems.xml">list of common problems</uri> and also look 79the <uri link="common-problems.xml">list of common problems</uri> and also look
75in <uri link="http://bugs.gentoo.org">bugzilla</uri> if the problem is reported 80in <uri link="http://bugs.gentoo.org">bugzilla</uri> if the problem is reported
76there.</p> 81there.</p>
77</body> 82</body>
78</section> 83</section>
79 84
80</chapter> 85</chapter>
81 86
82</guide> 87</guide>

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20