<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Counting Debian source packages</title>
	<atom:link href="http://www.kirya.net/weblog/2009/01/17/counting-debian-source-packages/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kirya.net/weblog/2009/01/17/counting-debian-source-packages/</link>
	<description>Julien Valroff&#039;s weblog and personal homepage</description>
	<lastBuildDate>Tue, 12 Jan 2010 19:51:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Julien</title>
		<link>http://www.kirya.net/weblog/2009/01/17/counting-debian-source-packages/comment-page-1/#comment-904</link>
		<dc:creator>Julien</dc:creator>
		<pubDate>Sat, 11 Jul 2009 08:49:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.kirya.net/?p=367#comment-904</guid>
		<description>Here is a script for Ubuntu, using your URL. Arguments should be &quot;jaunty&quot;, &quot;hardy&quot; etc.

&lt;pre lang=&quot;bash&quot;&gt;
#!/bin/sh

if [ $# -lt 1 ]; then
  echo &quot;Please add at least one distribution as argument&quot;
  echo &quot;Exiting&quot;
  exit 1
fi

for arg in $*
do

  echo -n &quot;Number of source packages in $arg: &quot;
  wget -q -O - ftp://ftp.ubuntu.com/ubuntu/dists/$arg/main/source/Sources.gz &#124; zgrep -c &#039;^Package: &#039;

done
&lt;/pre&gt;

&lt;pre lang=&quot;none&quot;&gt;
Number of source packages in karmic: 3059
Number of source packages in jaunty: 3039
Number of source packages in intrepid: 3199
Number of source packages in hardy: 3114
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Here is a script for Ubuntu, using your <abbr class="uttInitialism" title="Uniform Resource Locator">URL</abbr>. Arguments should be &#8220;jaunty&#8221;, &#8220;hardy&#8221; etc.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> <span style="color: #660033;">-lt</span> <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Please add at least one distribution as argument&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Exiting&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> arg <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$*</span>
<span style="color: #000000; font-weight: bold;">do</span>
&nbsp;
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Number of source packages in <span style="color: #007800;">$arg</span>: &quot;</span>
  <span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-q</span> <span style="color: #660033;">-O</span> - <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span>dists<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$arg</span><span style="color: #000000; font-weight: bold;">/</span>main<span style="color: #000000; font-weight: bold;">/</span>source<span style="color: #000000; font-weight: bold;">/</span>Sources.gz <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">zgrep</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">'^Package: '</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">Number of source packages in karmic: 3059
Number of source packages in jaunty: 3039
Number of source packages in intrepid: 3199
Number of source packages in hardy: 3114</pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Julien</title>
		<link>http://www.kirya.net/weblog/2009/01/17/counting-debian-source-packages/comment-page-1/#comment-903</link>
		<dc:creator>Julien</dc:creator>
		<pubDate>Sat, 11 Jul 2009 08:44:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.kirya.net/?p=367#comment-903</guid>
		<description>Most probably a problem with dfBlog theme - what was the issue exaclty? Did you get any error message?</description>
		<content:encoded><![CDATA[<p>Most probably a problem with dfBlog theme &#8211; what was the issue exaclty? Did you get any error message?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julien</title>
		<link>http://www.kirya.net/weblog/2009/01/17/counting-debian-source-packages/comment-page-1/#comment-902</link>
		<dc:creator>Julien</dc:creator>
		<pubDate>Sat, 11 Jul 2009 08:43:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.kirya.net/?p=367#comment-902</guid>
		<description>Thanks, post updated!</description>
		<content:encoded><![CDATA[<p>Thanks, post updated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asdf</title>
		<link>http://www.kirya.net/weblog/2009/01/17/counting-debian-source-packages/comment-page-1/#comment-900</link>
		<dc:creator>asdf</dc:creator>
		<pubDate>Fri, 10 Jul 2009 18:14:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.kirya.net/?p=367#comment-900</guid>
		<description>I wasn&#039;t able to send a comment here from Opera 9.64. It worked from FF. You should fix that, thanks.</description>
		<content:encoded><![CDATA[<p>I wasn&#8217;t able to send a comment here from Opera 9.64. It worked from FF. You should fix that, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asdf</title>
		<link>http://www.kirya.net/weblog/2009/01/17/counting-debian-source-packages/comment-page-1/#comment-899</link>
		<dc:creator>asdf</dc:creator>
		<pubDate>Fri, 10 Jul 2009 18:14:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.kirya.net/?p=367#comment-899</guid>
		<description>Just a stupid detail: you&#039;re missing &quot;!&quot; in your shebang and &quot;bash&quot; is unnecessary, just use &quot;sh&quot;.



Anyway, an interesting fact I learned is how low the package count in Ubuntu actually is (just over 3000) compared to Debian. Ubuntu is for i386/amd64 while Debian Lenny is for i386/alpha/sparc/powerpc/arm/mips/mipsel/ia64/hppa/s390/amd64/armel. Granted, not all Debian packages run on all architectures but still I feel awe about Debian.



I used the Ubuntu URL in your script.

ftp://ftp.ubuntu.com/ubuntu/dists/$arg/$dist/source/Sources.gz</description>
		<content:encoded><![CDATA[<p>Just a stupid detail: you&#8217;re missing &#8220;!&#8221; in your shebang and &#8220;bash&#8221; is unnecessary, just use &#8220;sh&#8221;.</p>
<p>Anyway, an interesting fact I learned is how low the package count in Ubuntu actually is (just over 3000) compared to Debian. Ubuntu is for i386/amd64 while Debian Lenny is for i386/alpha/sparc/powerpc/arm/mips/mipsel/ia64/hppa/s390/amd64/armel. Granted, not all Debian packages run on all architectures but still I feel awe about Debian.</p>
<p>I used the Ubuntu <abbr class="uttInitialism" title="Uniform Resource Locator">URL</abbr> in your script.</p>
<p><a href="ftp://ftp.ubuntu.com/ubuntu/dists/$arg/$dist/source/Sources.gz" rel="nofollow">ftp://ftp.ubuntu.com/ubuntu/dists/$arg/$dist/source/Sources.gz</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirya [.net]</title>
		<link>http://www.kirya.net/weblog/2009/01/17/counting-debian-source-packages/comment-page-1/#comment-584</link>
		<dc:creator>Kirya [.net]</dc:creator>
		<pubDate>Sat, 17 Jan 2009 13:56:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.kirya.net/?p=367#comment-584</guid>
		<description>&lt;strong&gt;Counting Debian source packages #2...&lt;/strong&gt;

Thanks to Joerg for pointing out pkg-nums.
I was pretty sure such a tool already existed but could not find it.
At least, my script (with Thomas&#8217; amendments) allow distinctions between sections (free, contrib, non-free)  And thanks to pkg-nums, I...</description>
		<content:encoded><![CDATA[<p><strong>Counting Debian source packages #2&#8230;</strong></p>
<p>Thanks to Joerg for pointing out pkg-nums.<br />
I was pretty sure such a tool already existed but could not find it.<br />
At least, my script (with Thomas&#8217; amendments) allow distinctions between sections (free, contrib, non-free)  And thanks to pkg-nums, I&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julien</title>
		<link>http://www.kirya.net/weblog/2009/01/17/counting-debian-source-packages/comment-page-1/#comment-583</link>
		<dc:creator>Julien</dc:creator>
		<pubDate>Sat, 17 Jan 2009 10:42:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.kirya.net/?p=367#comment-583</guid>
		<description>Reply to comment #4:
a) No, when I have written &quot;especially as these figures do include non-free and contrib packages which are &lt;strong&gt;not&lt;/strong&gt; part of Debian&quot; I wanted to say that the results of my script did include non-free and contrib, not the figure stated on the Debian homepage

b) that was clearly not my attention - I just wanted to check the figure announced. From our discussion, I understand that the figure advertised is far below the truth, and I think it would be a good thing for the project to update this figure (especially as the current figure is much larger!)

c) I didn&#039;t want to change this part of the post, as I explain my error in my first answer to you (I will however update the post to reflect that)

Reply to comment #5:
Thank you, script updated again</description>
		<content:encoded><![CDATA[<p>Reply to comment #4:<br />
a) No, when I have written &#8220;especially as these figures do include non-free and contrib packages which are <strong>not</strong> part of Debian&#8221; I wanted to say that the results of my script did include non-free and contrib, not the figure stated on the Debian homepage</p>
<p>b) that was clearly not my attention &#8211; I just wanted to check the figure announced. From our discussion, I understand that the figure advertised is far below the truth, and I think it would be a good thing for the project to update this figure (especially as the current figure is much larger!)</p>
<p>c) I didn&#8217;t want to change this part of the post, as I explain my error in my first answer to you (I will however update the post to reflect that)</p>
<p>Reply to comment #5:<br />
Thank you, script updated again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://www.kirya.net/weblog/2009/01/17/counting-debian-source-packages/comment-page-1/#comment-582</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Sat, 17 Jan 2009 10:29:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.kirya.net/?p=367#comment-582</guid>
		<description>btw:

zgrep &#039;^Package: &#039; &#124; sed &#039;s/Package: //&#039; &#124; sort -u &#124; wc -l

so at least the sed is not needed and I should think that

zgrep -c &#039;^Package: &#039; 

should do the trick entirely for repositories only featuring one version at the time (this should include dak ones at the moment).</description>
		<content:encoded><![CDATA[<p>btw:</p>
<p>zgrep &#8216;^Package: &#8216; | sed &#8217;s/Package: //&#8217; | sort -u | wc -l</p>
<p>so at least the sed is not needed and I should think that</p>
<p>zgrep -c &#8216;^Package: &#8216; </p>
<p>should do the trick entirely for repositories only featuring one version at the time (this should include dak ones at the moment).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://www.kirya.net/weblog/2009/01/17/counting-debian-source-packages/comment-page-1/#comment-581</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Sat, 17 Jan 2009 10:08:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.kirya.net/?p=367#comment-581</guid>
		<description>Sorry for being too aggressive,

Here is what bugs me: 

a) your original post had the implication that &quot;packages in Debian&quot; on Debian&#039;s main page could include contrib and non-free when you have advertised to have understood the social contract when applying for DM. That isn&#039;t even a problem because everyone gets confused about something at times - I can probably tell up from down only about 50% of the time, but

b) you&#039;re putting your conclusion from this bad premise up on Planet Debian where everyone else will learn from it. That bugs me. That bugs me more in the light of things like Lucas&#039; thoughts about membership. I don&#039;t have any reason to doubt your package-maintaining skills (and hey, there are way too many people whose package-maintaining skills I do doubt), but I thought your blog entry was problematic in the making-assertions-in-places-where-people-will-take-them-as-facts-before-understanding-department. I mean, clearly, either i) your script was wrong ii) the number on Debian&#039;s web page was bogus iii) something else was going on. I would hate for headlines &quot;Debian lies about the number of packages it contains&quot; to be generated from your blog post.

c) The suboptimal script, hey, OK. You put it on your blog, not in a package, I should just leave you alone for that.

But you&#039;re entirely right with useless aggression part. Sorry.

Mind you, you still compare the Debian page&#039;s binary count with your source count, maybe you could clarify your last sentence to reflect that your opinion is that the page should count something different instead of claiming the number is off the mark.</description>
		<content:encoded><![CDATA[<p>Sorry for being too aggressive,</p>
<p>Here is what bugs me: </p>
<p>a) your original post had the implication that &#8220;packages in Debian&#8221; on Debian&#8217;s main page could include contrib and non-free when you have advertised to have understood the social contract when applying for DM. That isn&#8217;t even a problem because everyone gets confused about something at times &#8211; I can probably tell up from down only about 50% of the time, but</p>
<p>b) you&#8217;re putting your conclusion from this bad premise up on Planet Debian where everyone else will learn from it. That bugs me. That bugs me more in the light of things like Lucas&#8217; thoughts about membership. I don&#8217;t have any reason to doubt your package-maintaining skills (and hey, there are way too many people whose package-maintaining skills I do doubt), but I thought your blog entry was problematic in the making-assertions-in-places-where-people-will-take-them-as-facts-before-understanding-department. I mean, clearly, either i) your script was wrong ii) the number on Debian&#8217;s web page was bogus iii) something else was going on. I would hate for headlines &#8220;Debian lies about the number of packages it contains&#8221; to be generated from your blog post.</p>
<p>c) The suboptimal script, hey, OK. You put it on your blog, not in a package, I should just leave you alone for that.</p>
<p>But you&#8217;re entirely right with useless aggression part. Sorry.</p>
<p>Mind you, you still compare the Debian page&#8217;s binary count with your source count, maybe you could clarify your last sentence to reflect that your opinion is that the page should count something different instead of claiming the number is off the mark.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julien</title>
		<link>http://www.kirya.net/weblog/2009/01/17/counting-debian-source-packages/comment-page-1/#comment-580</link>
		<dc:creator>Julien</dc:creator>
		<pubDate>Sat, 17 Jan 2009 08:46:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.kirya.net/?p=367#comment-580</guid>
		<description>Sorry, I cannot understand why you are so aggressive
I just ask...
If you doubt about my skills to be DM, please report to the appropriate people, I won&#039;t take this bad and respect their choice!

You are 100% right for a), just still wondering why I haven&#039;t thought to it before - I first downloaded the results of allpackages to check the results of the previous post, which might explain this (not an excuse though)

For b), re-reading the hompage indeed lead me to think it refers to binary packages - should however be updated to reflect the current state of packages.

c) limit to the current architecture which I want to avoid</description>
		<content:encoded><![CDATA[<p>Sorry, I cannot understand why you are so aggressive<br />
I just ask&#8230;<br />
If you doubt about my skills to be DM, please report to the appropriate people, I won&#8217;t take this bad and respect their choice!</p>
<p>You are 100% right for a), just still wondering why I haven&#8217;t thought to it before &#8211; I first downloaded the results of allpackages to check the results of the previous post, which might explain this (not an excuse though)</p>
<p>For b), re-reading the hompage indeed lead me to think it refers to binary packages &#8211; should however be updated to reflect the current state of packages.</p>
<p>c) limit to the current architecture which I want to avoid</p>
]]></content:encoded>
	</item>
</channel>
</rss>
