<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>the blog of Chris &#187; apt</title>
	<atom:link href="http://blog.christophersmart.com/tag/apt/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.christophersmart.com</link>
	<description>Fortiter Et Recte</description>
	<lastBuildDate>Wed, 28 Dec 2011 23:39:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Hi Debian, welcome to 1904</title>
		<link>http://blog.christophersmart.com/2010/01/19/hi-debian-welcome-to-1904/</link>
		<comments>http://blog.christophersmart.com/2010/01/19/hi-debian-welcome-to-1904/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 11:00:13 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[FOSS]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[invalid]]></category>
		<category><![CDATA[keys]]></category>
		<category><![CDATA[ppc]]></category>

		<guid isPermaLink="false">http://blog.christophersmart.com/?p=1926</guid>
		<description><![CDATA[I tried to install Debian onto an old PPC iMac with 300MB RAM without success. Firstly, the testing network and business card installers would segfault when booting. A known problem which hasn&#8217;t yet been fixed. No matter, I just switched to the stable network installer and began my journey. Problem is, it gets stuck at [...]]]></description>
			<content:encoded><![CDATA[<p>I tried to install Debian onto an old PPC iMac with 300MB RAM without success.</p>
<p>Firstly, the testing network and business card installers would segfault when booting. A known problem which hasn&#8217;t yet been fixed.</p>
<p>No matter, I just switched to the stable network installer and began my journey. Problem is, it gets stuck at configuring packages. Just sits there at 1% forever. When I see the log, I notice that it&#8217;s prompting me to confirm the installation of packages, which is hidden from the main screen and therefore what was causing it to die.</p>
<p>Changing root into /target I ran a few commands myself and noticed that apt-get update said that the GPG keys from debian-archive-keyring were invalid.</p>
<p>DAMN. What&#8217;s going on..</p>
<p>So I tried everything I could to fix it. Googled and Googled and Googled to no avail. Lots of people had similar issues, but forcing a re-install of <code>debian-archive-keyring</code> fixed it for them. Others said to use a different mirror.</p>
<p>I was about to curse Debian for no-longer caring about PPC and then it hit me. <em>Check the date of the machine.</em> Yes, sir, it was 3rd January 1904 &#8211; as far as Debian was concerned, the keys were well and truly invalid.</p>
<p>So a simple, <code>apt-get install ntpdate &#038;&#038; ntpdate ntp.internode.on.net</code> and everything was sweet. Why it didn&#8217;t do this properly when I configured the time during the installer I don&#8217;t know. Nevertheless, I&#8217;m happy again.</p>
<p>Silly me.</p>
<p>-c</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.christophersmart.com/2010/01/19/hi-debian-welcome-to-1904/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yum still on the menu?</title>
		<link>http://blog.christophersmart.com/2009/06/24/yum-still-on-the-menu/</link>
		<comments>http://blog.christophersmart.com/2009/06/24/yum-still-on-the-menu/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 06:15:19 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[comparision]]></category>
		<category><![CDATA[deb]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://blog.christophersmart.com/?p=876</guid>
		<description><![CDATA[Update: I&#8217;ve tried to post my results back to Seth&#8217;s thread but it won&#8217;t work, so I&#8217;ve emailed him instead. In response to my article comparing Yum and Apt (at least I think it was my article, might have been someone else&#8217;s I guess), lead developer of Yum, Seth Vidal, wrote his own test script [...]]]></description>
			<content:encoded><![CDATA[<p><em>Update: I&#8217;ve tried to post my results back to Seth&#8217;s thread but it won&#8217;t work, so I&#8217;ve emailed him instead.</em></p>
<p>In response to my <a href="http://www.linux-mag.com/id/7382/">article comparing Yum and Apt</a> (at least I think it was my article, might have been someone else&#8217;s I guess), lead developer of Yum, <a href="http://skvidal.wordpress.com/">Seth Vidal</a>, wrote his own test script and performed <a href="http://skvidal.wordpress.com/2009/06/18/yum-benchmarks/">some Yum benchmarks of his own</a>.</p>
<p>He wrote:</p>
<blockquote><p>Always a fun comparison. It’d be even more fun if any of the numbers seemed accurate.</p></blockquote>
<p>His ran his test and concluded that Yum is &#8220;pretty good&#8221; and offers for others to run the test and post their results. So I did, on the same computer I used for the my article. I also compared the results to Ubuntu, as that&#8217;s really what my article was talking about <img src='http://blog.christophersmart.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>So what did I find?</p>
<p><span id="more-876"></span><br />
<strong>Scripts</strong><br />
Firstly, here is the script he wrote:<br />
<a href="http://skvidal.fedorapeople.org/misc/yum-test.sh.txt">http://skvidal.fedorapeople.org/misc/yum-test.sh.txt</a></p>
<p>Here is the script I modified for Ubuntu:<br />
<a href="http://christophersmart.com/files/apt-test.sh">http://christophersmart.com/files/apt-test.sh</a></p>
<p><strong>Preparation</strong><br />
Before running the tests I first deleted all old repo data as I wanted as clean a system as possible. I then ran &#8220;yum check-update&#8221; and &#8220;yum install -y &#8211;downloadonly zziplib-utils&#8221; on Fedora so that I had an up-to-date package database and the files locally. I did the same thing on Ubuntu (but obviously not with &#8220;yum&#8221;).</p>
<p>Then I uninstalled &#8220;yum-plugin-downloadonly&#8221; and &#8220;yum-plugin-download-remove-with-leaves&#8221; and rebooted, so that it would not negatively affect the speed of Yum having to load extra plugins outside of the default.</p>
<p>I also ran the tests in <em>single user mode</em> so that other system processes such as PackageKit would not interfere.</p>
<p>After I had run both scripts, I also re-ran each of the tests <em>individually</em> (which below I call &#8220;freshboot&#8221;), rebooting in between each one so that memory caching would not manipulate the results. After all, running all those commands one after another is bound to overlap and I don&#8217;t think provides an accurate benchmark of each package management component.</p>
<p><strong>Results</strong><br />
Results for Fedora 11 are here, followed by results on a freshboot:<br />
<a href="http://christophersmart.com/files/simple-yum-results.txt">http://christophersmart.com/files/simple-yum-results.txt</a><br />
<a href="http://christophersmart.com/files/simple-yum-results-freshboot.txt">http://christophersmart.com/files/simple-yum-results-freshboot.txt</a></p>
<p>Ubuntu 9.04 results are here, followed by results on a freshboot:<br />
<a href="http://christophersmart.com/files/simple-apt-results.txt">http://christophersmart.com/files/simple-apt-results.txt</a><br />
<a href="http://christophersmart.com/files/simple-apt-results-freshboot.txt">http://christophersmart.com/files/simple-apt-results-freshboot.txt</a></p>
<p><strong>Analysis</strong></p>
<p><em><strong>Search by keyword</strong></em><br />
Yum provided 5 results and took 4.746s<br />
Apt provided 12 results and took 1.366s</p>
<p><em>Apt was 3.47 times faster.</em></p>
<p><em>Fresh boot</em><br />
Yum took 3.380s<br />
Apt took 1.240s</p>
<p><em>Apt was 2.73 times faster.</em><br />
NOTE: I don&#8217;t know why this results were faster on a freshboot, they should be about the same as the first test was on a fresh boot anyway!</p>
<p><strong><em>Search by file provide</em></strong><br />
Yum took 10.654s<br />
Apt took 2.291s</p>
<p><em>Apt was 4.65 times faster.</em><br />
NOTE: I have discovered that running &#8220;yum provides&#8221; builds a cache and so subsequent searches are much faster. Debian has two tools for this, apt-file and dpkg, but dpkg only works for installed packages while apt-file does the entire repository. Also, apt-file needs to be updated like apt-get does, so perhaps a better comparison is needed.</p>
<p><em>Fresh boot</em><br />
Yum took 10.903s<br />
Apt took 2.354s</p>
<p><em>Apt was 4.63 times faster.</em></p>
<p><em><strong>List installed pkgs</strong></em></p>
<p>Yum listed 1,092 packages and took 1.756s<br />
Apt listed 1,188 packages and took 0.191s</p>
<p><em>Apt was 9.19 times faster.</em></p>
<p><em>Fresh boot</em><br />
Yum took 3.924s<br />
Apt took 0.187s</p>
<p><em>Apt was 20.98 times faster.</em></p>
<p><em><strong>Install pkg + deps</strong></em><br />
Yum installed two programs and took 9.775s<br />
Apt installed two programs and took 4.868s</p>
<p><em>Apt was 2.01 times faster.</em><br />
NOTE: I didn&#8217;t install the same program for my tests, but in my article Apt was about 3 times faster.</p>
<p><em>Fresh boot</em><br />
Yum took 14.097s<br />
Apt took 5.671s</p>
<p><em>Apt was 2.49 times faster.</em></p>
<p><em><strong>Removing package</strong></em></p>
<p>Yum took 3.714s<br />
Apt took 2.337s</p>
<p><em>Apt was 1.56 times faster.</em><br />
NOTE: For the tests in my article I used yum with &#8220;&#8211;remove-leaves&#8221;, which checks to see if any other programs requires the dependencies of the package you&#8217;re using and if not, removes those too. This was not done here, which is most likely the cause of the big difference between these and the results in my article. In my article I used tomboy for my tests (after I had removed all mono applications and then re-installed tomboy) which had to remove 7 dependencies. The test used in this script is not really testing all that.</p>
<p><em>Fresh boot</em><br />
Yum took 10.137s<br />
Apt took 4.916s</p>
<p><em>Apt was 2.06 times faster.</em></p>
<p><strong>Conclusion</strong><br />
Seth&#8217;s test seem to confirm my own findings, with the exception of installing and removing packages. Naturally I installed different packages than were used here and I also used the remove-with-leaves plugin for Yum to make it remove no-longer needed dependencies.</p>
<p>These two tests probably caused the most eyebrow raising (as in my article it shows Ubuntu as being 3 and 5 times faster, respectively) but they aren&#8217;t really addressed in Seth&#8217;s script. The results from his script are in Ubuntu&#8217;s favour to a factor of 2.5 and 2, respectively so it&#8217;s not crazily out of proportion. I&#8217;d be interested to see some results on this. Also, a better test for searching by provides would be useful.</p>
<p>Of course it is hard to compare these when they all use different packages and pull in different dependencies. This is why I also had a test to install from a file rather than the database. My test installed Skype via an rpm and deb (ugly I know, but it was the only 3rd party application I could find which provided native packages for both distros), which had zero dependencies and was not in the local database. In my tests Ubuntu was faster than Fedora by a factor of 7. I&#8217;d like to see this included in his script too.</p>
<p>It is interesting to see that Apt is faster still, when running from a fresh boot.</p>
<p>Never-the-less, I would invite any others who wish to test to do so also and let me know how it went. Sure, Yum might have bucket loads more metadata and maybe it can do lots more fancy things, but at the end of the day it still comes in at second place here.</p>
<p>And while I&#8217;m writing all this up, I want to clarify that I&#8217;m not a Yum hater. I do agree with Seth that Yum is &#8220;pretty good&#8221;, but I just wish it would be better. Actually, I also <em>really</em> like Fedora.</p>
<p>As I concluded in my original article, maybe no-one cares how fast or slow their package manager is. Then again, maybe some people do. Personally, I&#8217;d love to see Yum become the best package manager on the planet <img src='http://blog.christophersmart.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>What I now want to know are all the <em>tweaks and configurations people do to their Yum systems</em> to get better performance. Tips anyone?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.christophersmart.com/2009/06/24/yum-still-on-the-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Having Yum for Breakfast</title>
		<link>http://blog.christophersmart.com/2009/06/19/having-yum-for-breakfast/</link>
		<comments>http://blog.christophersmart.com/2009/06/19/having-yum-for-breakfast/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 22:52:23 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[deb]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[manager]]></category>
		<category><![CDATA[managment]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://blog.christophersmart.com/?p=858</guid>
		<description><![CDATA[This week I decided to write a comparative article between Yum and Apt (the package managers). Using Fedora 11 and Ubuntu 9.04, I performed various tests and benchmarked both the time and CPU usage they took. But why? Let me explain. I really like the Fedora project. Really. I like their stance on proprietary drivers [...]]]></description>
			<content:encoded><![CDATA[<p>This week I decided to write a <a href="http://www.linux-mag.com/id/7382/">comparative article between Yum and Apt</a> (the package managers). Using Fedora 11 and Ubuntu 9.04, I performed various tests and benchmarked both the time and CPU usage they took. But why? Let me explain.</p>
<p>I really like the <a href="http://fedoraproject.org">Fedora project</a>. Really. I like their stance on proprietary drivers and codecs (and of course free software) and these days they seem to be pushing the technological envelope more than others. Sure Red Hat drives the direction of the project somewhat, but I don&#8217;t mind Red Hat either.</p>
<p>In fact, I wish I could use Fedora as my main distro! But every time I try it I just get so frustrated with <a href="http://yum.baseurl.org/">Yum</a>. Sure it&#8217;s better than up2date, but it&#8217;s so damn slow and annoying. That&#8217;s a problem for someone like me who manually updates his package database first thing every morning and checks to see what packages are available and updates the system by hand. Why do I do that? Cause I like to.</p>
<p>But every time I&#8217;ve tried to get into Fedora that damn package manager has stopped me. I get frustrated after a day or so. I think the longest I&#8217;ve had it on was 2 days before I switched.</p>
<p>Recently I installed Fedora 10 and 11 to see if there was any performance increase. Actually, to tell you the truth <em>I was completely surprised by Yum&#8217;s agility and speed</em>. The old Fedora I remember was not to be seen.. or so it felt like anyway.</p>
<p>Hence, I thought it might be good to run some tests to see.</p>
<p>Of course as the article points out, does any of this matter? Do we really need a fast a nimble package manager? Well for me it matters. It matters a great deal. For most users though they probably won&#8217;t care, as they just let the package manager do its thing in the background.</p>
<p>Still, it makes for some interesting thoughts. I think.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.christophersmart.com/2009/06/19/having-yum-for-breakfast/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Changing priorities</title>
		<link>http://blog.christophersmart.com/2009/04/07/changing-priorities/</link>
		<comments>http://blog.christophersmart.com/2009/04/07/changing-priorities/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 01:31:48 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[FOSS]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sys admin]]></category>

		<guid isPermaLink="false">http://blog.christophersmart.com/?p=550</guid>
		<description><![CDATA[I&#8217;m scripting some sys admin tasks in Debian which require the installation of packages like Postfix. I don&#8217;t want it to prompt me with questions, so I knew I had to set the priority to something higher for this specific package (i.e. temporarily). There doesn&#8217;t appear to be a way to pass this to an [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m scripting some sys admin tasks in Debian which require the installation of packages like Postfix. I don&#8217;t want it to prompt me with questions, so I knew I had to set the priority to something higher for this specific package (i.e. temporarily). There doesn&#8217;t appear to be a way to pass this to an <code>apt-get</code> command (which was a little disappointing) but debconf can set it system wide under <code>/var/cache/debconf/config.dat</code>, but that&#8217;s, well, ugly.</p>
<p>Turns out there&#8217;s an environment variable you can set to achieve what I want, DEBIAN_PRIORITY. So exporting this variable and unsetting it post install will do the trick, but I still think <code>apt-get -p critical install postfix</code> would be better <img src='http://blog.christophersmart.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>-c</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.christophersmart.com/2009/04/07/changing-priorities/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

