/[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.4 Revision 1.5
31 31
32<section> 32<section>
33<title>Getting a portage tarball</title> 33<title>Getting a portage tarball</title>
34<body> 34<body>
35<p>The first step to do is to get the tarball of a current portage version. In 35<p>The first step to do is to get the tarball of a current portage version. In
36the following text we will use <e>portage-2.1-r2</e> as an example (as this 36the following text we will use <e>portage-2.1.1</e> as an example (as this
37is the current stable version at the time of this writing), please replace that 37is the current stable version at the time of this writing), please replace that
38with a version present in the tree.</p> 38with a version present in the tree.</p>
39<p>Depending on the exact reason portage doesn't work for you anymore it may still 39<p>Depending on the exact reason portage doesn't work for you anymore it may still
40be possible to use it to fetch the tarball for you, so as a first step please 40be possible to use it to fetch the tarball for you, so as a first step please
41try to run <c>emerge --fetchonly sys-apps/portage</c>, only if that doesn't work 41try to run <c>emerge --fetchonly sys-apps/portage</c>, only if that doesn't work
42you have to manually fetch the tarball with:</p> 42you have to manually fetch the tarball with:</p>
43<pre caption="fetching portage tarball with wget"> 43<pre caption="fetching portage tarball with wget">
44wget -P /usr/portage/distfiles http://distfiles.gentoo.org/distfiles/portage-2.1-r2.tar.bz2 44wget -P /usr/portage/distfiles http://distfiles.gentoo.org/distfiles/portage-2.1.1.tar.bz2
45</pre> 45</pre>
46<p>After that you should have the tarball available as 46<p>After that you should have the tarball available as
47<path>/usr/portage/distfiles/portage-2.1-r2.tar.bz2</path>.</p> 47<path>/usr/portage/distfiles/portage-2.1.1.tar.bz2</path>.</p>
48</body> 48</body>
49</section> 49</section>
50 50
51<section> 51<section>
52<title>Replacing the installed version</title> 52<title>Replacing the installed version</title>
55<path>/root/portage-recover</path> as example the commands to do that are:</p> 55<path>/root/portage-recover</path> as example the commands to do that are:</p>
56<pre caption="unpacking portage tarball"> 56<pre caption="unpacking portage tarball">
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.1.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.1
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>

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

  ViewVC Help
Powered by ViewVC 1.1.20