
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.sabayonlinux.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Use_xdelta&amp;feed=atom&amp;action=history</id>
		<title>HOWTO: Use xdelta - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Use_xdelta&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Use_xdelta&amp;action=history"/>
		<updated>2013-05-25T11:22:03Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.4</generator>

	<entry>
		<id>http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Use_xdelta&amp;diff=5894&amp;oldid=prev</id>
		<title>Zambayoni at 17:37, 12 February 2009</title>
		<link rel="alternate" type="text/html" href="http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Use_xdelta&amp;diff=5894&amp;oldid=prev"/>
				<updated>2009-02-12T17:37:20Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Xdelta provides the ability to generate deltas between a pair of files and later apply those deltas. It operates similar to the diff and patch commands.  We use xdeltas during development, and when a release has minimal changes.  This way we can distribute smaller files that can be used to patch an older iso to make it current.&lt;br /&gt;
&lt;br /&gt;
To use xdelta you, of course, need to have it installed.  If you do not, run this:&lt;br /&gt;
&amp;lt;pre&amp;gt;# emerge =dev-util/xdelta-1.1.4-r1 &amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;# equo install dev-util/xdelta-1.1.4-r1 &amp;lt;/pre&amp;gt;&lt;br /&gt;
NOTE: We do not want xdelta version 3, so be sure to emerge it like that.&lt;br /&gt;
 &lt;br /&gt;
To apply xdeltas do the following:&lt;br /&gt;
&lt;br /&gt;
Split the ISO, using 2gb pieces, which should be 3 parts, with the last part being only a few hundred mb.&lt;br /&gt;
&amp;lt;pre&amp;gt;$ split -d -b 2000000000 SabayonLinux-x86-3.4a.iso  old.0 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You need to download the xdelta patches:&lt;br /&gt;
      xdelta patch sl-x86-3.4a-to-3.4e-0.xdelta&lt;br /&gt;
      xdelta patch sl-x86-3.4a-to-3.4e-1.xdelta&lt;br /&gt;
      xdelta patch sl-x86-3.4a-to-3.4e-2.xdelta&lt;br /&gt;
to the same folder as the SabayonLinux-x86-3.4a.iso&lt;br /&gt;
&lt;br /&gt;
This is how to apply the patches:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ xdelta patch sl-x86-3.4a-to-3.4e-0.xdelta old.000 new.000&lt;br /&gt;
$ xdelta patch sl-x86-3.4a-to-3.4e-1.xdelta old.001 new.001&lt;br /&gt;
$ xdelta patch sl-x86-3.4a-to-3.4e-2.xdelta old.002 new.002&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To rebuild the new iso, use 'cat' as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ cat new.00* &amp;gt;  SabayonLinux-x86-3.4e.iso&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thats it!  You may also want to download the md5sum to where you built the iso and run:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ md5sum -c SabayonLinux-x86-3.4e.iso.md5&amp;lt;/pre&amp;gt;&lt;br /&gt;
That will verify the iso was built properly.&lt;br /&gt;
&lt;br /&gt;
After you have verified the iso is good, you should probably clean up the extra files, so that you arent wasting ~8gb of space:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ rm new.* &amp;amp;&amp;amp; rm old.*&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Zambayoni</name></author>	</entry>

	</feed>