<?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>Anil Gulecha&#039;s Musings &#187; apt-cache</title>
	<atom:link href="http://www.gulecha.org/tag/apt-cache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gulecha.org</link>
	<description>Anil Gulecha&#039;s Musings</description>
	<lastBuildDate>Mon, 02 Jan 2012 13:17:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Unmetlist: apt-cache unmet listing search tool</title>
		<link>http://www.gulecha.org/2008/09/24/unmetlist-apt-cache-unmet-listing-search-tool/</link>
		<comments>http://www.gulecha.org/2008/09/24/unmetlist-apt-cache-unmet-listing-search-tool/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 06:41:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Nexenta]]></category>
		<category><![CDATA[Opensolaris]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apt-cache]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[unmetlist]]></category>

		<guid isPermaLink="false">http://www.gulecha.org/?p=53</guid>
		<description><![CDATA[To put into use my newbie python skills, I wrote a tool that searches the output of apt-cache unmet -i When populating a newly built repository, I often run into instances where I want to find all the unbuilt packages that depend on kdelibs, or all packages that have openoffice as a dependency. In general [...]]]></description>
			<content:encoded><![CDATA[<p>To put into use my newbie python skills, I wrote a tool that searches the output of apt-cache unmet -i</p>
<p>When populating a newly built repository, I often run into instances where I want to find all the unbuilt packages that depend on kdelibs, or all packages that have openoffice as a dependency. In general I want to know if what packages wont build without X.</p>
<p>So I wrote <em>unmetlist</em>. This will help debian/equivalent and apt developers list out packages that aren&#8217;t built, and required in the repository. It can look for (reverse) dependencies, suggests, etc. The difference between apt-cache&#8217;s inbuilt search and this tool is that apt-cache searches for the exact package name specified, where as <em>unmetlist</em> searches for the pattern (so kde will match kde-code, kde-libs, etc).</p>
<blockquote><p>root@oahu:~/src/work3# ./unmetlist<br />
Ver 0.1<br />
Usage<br />
./unmetlist &lt;option&gt;  &lt;package&gt; &lt;unmet_listing_file&gt;<br />
Option can be one of the following<br />
search : search for the &lt;package&gt; in listing and print full listing<br />
depends : find dependencies of &lt;package&gt;<br />
rdepends : find which packages depend on &lt;package&gt;<br />
suggests : find suggested packages for &lt;package&gt;<br />
rsuggests : find which packages suggest &lt;package&gt;<br />
recommends : find recommended packages for &lt;package&gt;<br />
rrecommends : find which packages recommend &lt;package&gt;</p></blockquote>
<p>To run it first generate the unmet listing using</p>
<blockquote><p>apt-cache unmet -i &gt; /tmp/unmetfile</p></blockquote>
<p>and use as follows</p>
<blockquote><p>./unmetlist rdepends openoffice /tmp/unmetfile</p></blockquote>
<p>Its still new had edges, but it works.</p>
<p>Get the tool <a href="http://www.gulecha.org/incoming/unmetlist_v0.1" target="_blank">here</a>. (right click&gt;save as..) and be sure to chmod +x the file. Let me know if you find this useful, have suggestions, or want to request a feature.</p>
<p>Oh, and python is a pleasure to work with. String processing has never been easier <img src='http://www.gulecha.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.gulecha.org/2008/09/24/unmetlist-apt-cache-unmet-listing-search-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

