http://linux-vserver.org/index.php?title=Yum-patch&feed=atom&action=historyYum-patch - Revision history2024-03-19T11:00:49ZRevision history for this page on the wikiMediaWiki 1.20.2http://linux-vserver.org/index.php?title=Yum-patch&diff=4998&oldid=prevGlenn: catspec2011-10-21T20:50:01Z<p>catspec</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 20:50, 21 October 2011</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 65:</td>
<td colspan="2" class="diff-lineno">Line 65:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  vyum <vserver_name> -- update</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  vyum <vserver_name> -- update</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[Category:<del class="diffchange diffchange-inline">Documentation</del>]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[Category:<ins class="diffchange diffchange-inline">Software under linux-vserver</ins>]]</div></td></tr>
</table>Glennhttp://linux-vserver.org/index.php?title=Yum-patch&diff=4995&oldid=prevGlenn: +link2011-10-21T20:47:07Z<p>+link</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 20:47, 21 October 2011</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 4:</td>
<td colspan="2" class="diff-lineno">Line 4:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>If you are getting the following error:-</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>If you are getting the following error:-</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>  You are using a version of yum which is insecure and broken in chroot</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>  You are using a version of <ins class="diffchange diffchange-inline">[http://en.wikipedia.org/wiki/YUM_%28software%29 </ins>yum<ins class="diffchange diffchange-inline">] </ins>which is insecure and broken in chroot</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  related operations; either apply the patches shipped in the 'contrib/'</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  related operations; either apply the patches shipped in the 'contrib/'</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  directory of util-vserver, or ask the author of yum to apply them</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  directory of util-vserver, or ask the author of yum to apply them</div></td></tr>
</table>Glennhttp://linux-vserver.org/index.php?title=Yum-patch&diff=4844&oldid=prevGlenn: +cat2011-10-21T19:04:02Z<p>+cat</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 19:04, 21 October 2011</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 64:</td>
<td colspan="2" class="diff-lineno">Line 64:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>vyum should now be patched, to test</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>vyum should now be patched, to test</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  vyum <vserver_name> -- update</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  vyum <vserver_name> -- update</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">[[Category:Documentation]]</ins></div></td></tr>
</table>Glennhttp://linux-vserver.org/index.php?title=Yum-patch&diff=2722&oldid=prevDaniel hozac: Yum-patch:Documentation moved to Yum-patch: yum-patch is not a namespace.2007-09-13T23:03:26Z<p><a href="/Yum-patch:Documentation" class="mw-redirect" title="Yum-patch:Documentation">Yum-patch:Documentation</a> moved to <a href="/Yum-patch" title="Yum-patch">Yum-patch</a>: yum-patch is not a namespace.</p>
<table class='diff diff-contentalign-left'>
<tr style='vertical-align: top;'>
<td colspan='1' style="background-color: white; color:black;">← Older revision</td>
<td colspan='1' style="background-color: white; color:black;">Revision as of 23:03, 13 September 2007</td>
</tr></table>Daniel hozachttp://linux-vserver.org/index.php?title=Yum-patch&diff=2534&oldid=prevVerit at 10:06, 11 June 20072007-06-11T10:06:06Z<p></p>
<p><b>New page</b></p><div>=Install Patched vyum=<br />
<br />
== The Issue ==<br />
If you are getting the following error:-<br />
<br />
You are using a version of yum which is insecure and broken in chroot<br />
related operations; either apply the patches shipped in the 'contrib/'<br />
directory of util-vserver, or ask the author of yum to apply them<br />
(preferred).<br />
In the meantime, 'vyum' will continue with dirty hacks which might not<br />
work when the vserver is running and local DOS attacks are possible.<br />
Execution will continue in 5 seconds...<br />
<br />
== How to solve ==<br />
<br />
Find your Yum version<br />
yum --version<br />
<br />
Change directory<br />
cd /usr/src/*/SOURCES/<br />
<br />
Next find the correct patch at http://svn.linux-vserver.org/svn/util-vserver/trunk/contrib/ and download it (replace X.X.X with your yum version)<br />
wget http://svn.linux-vserver.org/svn/util-vserver/trunk/contrib/yum-X.X.X-chroot.patch<br />
<br />
Now lets create a directory to build all this<br />
cd /root<br />
mkdir yum-chroot<br />
cd yum-chroot<br />
<br />
Go to http://rpm.pbone.net/ and search for yum-X.X.X<br />
Pick the correct version eg 32 or 64bit, etc<br />
Then click the SOURCE file (important, don’t go to the RPM's)<br />
Select the right option from the list (eg. Centos or Redhat)<br />
Then pick a mirror (replace X.X.X with your yum version)<br />
wget ftp://ftp.nluug.nl/pub/os/Linux/distr/CentOS/5.0/os/SRPMS/yum-X.X.X-1.el5.centos.2.src.rpm<br />
rpm -i yum-X.X.X-1.el5.centos.2.src.rpm<br />
<br />
Now we will have 'yum.spc' file to modify, move it to our working directory<br />
cp /usr/src/*/SPECS/yum.spec .<br />
<br />
Edit the yum.spec file and find Patch lines as below (yours may be different):-<br />
Patch1: yum.conf.centos<br />
Patch2: yum-fix-install.patch<br />
And add another patch line after last Patch eg.<br />
Patch1: yum.conf.centos<br />
Patch2: yum-fix-install.patch<br />
Patch3: yum-X.X.X-chroot.patch (replace X with version)<br />
Then find:-<br />
%patch1 -p1<br />
%patch2 -p1<br />
And add another line with the same number you added above:-<br />
%patch1 -p1<br />
%patch2 -p1<br />
%patch3 -p1<br />
Save and exit<br />
<br />
<br />
Now the build<br />
rpmbuild -ba yum.spec<br />
<br />
Now update yum to our patched version<br />
rpm -U /usr/src/*/RPMS/noarch/yum-*<br />
<br />
vyum should now be patched, to test<br />
vyum <vserver_name> -- update</div>Verit