/[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.14 Revision 1.15
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/portage/doc/manually-fixing-portage.xml,v 1.14 2010/03/21 00:54:54 zmedico Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/portage/doc/manually-fixing-portage.xml,v 1.15 2010/04/30 08:59:20 zmedico Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4 4
5<guide link="/proj/en/portage/doc/manually-fixing-portage.xml"> 5<guide link="/proj/en/portage/doc/manually-fixing-portage.xml">
6 6
7<title>Manually fixing broken portage installations</title> 7<title>Manually fixing broken portage installations</title>
41<title>Getting a portage tarball</title> 41<title>Getting a portage tarball</title>
42<body> 42<body>
43 43
44<p> 44<p>
45The first step to do is to get the tarball of a current portage version. In the 45The first step to do is to get the tarball of a current portage version. In the
46following text we will use <e>portage-2.1.7</e> as an example (as this is the 46following text we will use <e>portage-2.1.8</e> as an example (as this is the
47current stable version at the time of this writing), please replace that with a 47current stable version at the time of this writing), please replace that with a
48version present in the tree if possible. 48version present in the tree if possible.
49</p> 49</p>
50<warn> 50<warn>
51If your currently installed version of python reported by <c>python -V</c> 51If your currently installed version of python reported by <c>python -V</c>
52is less than 2.6 then you must choose a version of portage that is compatible with 52is less than 2.6 then you must choose a version of portage that is compatible with
53it. If you have at least python 2.6 then use <e>portage-2.1.7.tar.bz2</e>. If 53it. If you have at least python 2.6 then use <e>portage-2.1.8.tar.bz2</e>. If
54you have python 2.4 or 2.5 then use <e>portage-2.1.6.tar.bz2</e>. 54you have python 2.4 or 2.5 then use <e>portage-2.1.6.tar.bz2</e>.
55</warn> 55</warn>
56 56
57<p> 57<p>
58Depending on the exact reason portage doesn't work for you anymore it may still 58Depending on the exact reason portage doesn't work for you anymore it may still
60try to run <c>emerge --fetchonly sys-apps/portage</c>, only if that doesn't 60try to run <c>emerge --fetchonly sys-apps/portage</c>, only if that doesn't
61work you have to manually fetch the tarball with: 61work you have to manually fetch the tarball with:
62</p> 62</p>
63 63
64<pre caption="Fetching portage tarball with wget"> 64<pre caption="Fetching portage tarball with wget">
65# <i>wget -P /usr/portage/distfiles http://distfiles.gentoo.org/distfiles/portage-2.1.7.tar.bz2</i> 65# <i>wget -P /usr/portage/distfiles http://distfiles.gentoo.org/distfiles/portage-2.1.8.tar.bz2</i>
66</pre> 66</pre>
67 67
68<p> 68<p>
69After that you should have the tarball available as 69After that you should have the tarball available as
70<path>/usr/portage/distfiles/portage-2.1.7.tar.bz2</path>. 70<path>/usr/portage/distfiles/portage-2.1.8.tar.bz2</path>.
71</p> 71</p>
72 72
73</body> 73</body>
74</section> 74</section>
75<section> 75<section>
83 83
84<pre caption="Unpacking portage tarball"> 84<pre caption="Unpacking portage tarball">
85# <i>cd /root</i> 85# <i>cd /root</i>
86# <i>mkdir portage-recover</i> 86# <i>mkdir portage-recover</i>
87# <i>cd portage-recover</i> 87# <i>cd portage-recover</i>
88# <i>tar xfj /usr/portage/distfiles/portage-2.1.7.tar.bz2</i> 88# <i>tar xfj /usr/portage/distfiles/portage-2.1.8.tar.bz2</i>
89</pre> 89</pre>
90 90
91<p> 91<p>
92After you have done this it's just a matter of replacing the python and bash 92After you have done this it's just a matter of replacing the python and bash
93files of your existing installation with the ones from the tarball (in most 93files of your existing installation with the ones from the tarball (in most
94cases anyway). To do so please run: 94cases anyway). To do so please run:
95</p> 95</p>
96 96
97<pre caption="Replacing installed files"> 97<pre caption="Replacing installed files">
98# <i>cd /root/portage-recover/portage-2.1.7</i> 98# <i>cd /root/portage-recover/portage-2.1.8</i>
99# <i>cp -R pym bin /usr/lib/portage/</i> 99# <i>cp -R pym bin /usr/lib/portage/</i>
100</pre> 100</pre>
101 101
102<p> 102<p>
103If you are not using Gentoo on FreeBSD then you should remove the sed wrapper 103If you are not using Gentoo on FreeBSD then you should remove the sed wrapper

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20