<?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>stick&#039;s corner &#187; satsolver</title>
	<atom:link href="http://stick.gk2.sk/blog/tag/satsolver/feed/" rel="self" type="application/rss+xml" />
	<link>http://stick.gk2.sk</link>
	<description>Look at you, hacker. A pathetic creature of meat and bone. How can you challenge a perfect, immortal machine?</description>
	<lastBuildDate>Mon, 26 Jul 2010 16:31:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>zypper &#8211; dependency graph</title>
		<link>http://stick.gk2.sk/blog/2010/03/zypper-dependency-graph/</link>
		<comments>http://stick.gk2.sk/blog/2010/03/zypper-dependency-graph/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 13:55:31 +0000</pubDate>
		<dc:creator>Pavol Rusnak</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[satsolver]]></category>
		<category><![CDATA[zypp]]></category>
		<category><![CDATA[zypper]]></category>

		<guid isPermaLink="false">http://stick.gk2.sk/?p=1215</guid>
		<description><![CDATA[Yesterday, we needed with darix to obtain a dependency graph of the package you are about to install. I knew that something similar was planned in zypper, so I went to Jano Kupec to check the status of it. Unfortunately, I learned that this feature is not implemented yet. I think it should not be [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Yesterday, we needed with <a href="http://nordisch.org/">darix</a> to obtain a dependency graph of the package you are about to install. I knew that something similar was planned in zypper, so I went to <a href="http://jniq.blogspot.com/">Jano Kupec</a> to check the status of it. Unfortunately, I learned that this feature is not implemented yet. I think it should not be very hard to enhance the zypper package list with some eye-candy, but I haven&#8217;t looked into it yet. I would love to have these outputs similar to Gentoo ones (colors and simple ASCII art dependency trees). Btw, zypper already has <a href="http://jniq.blogspot.com/2009/06/colors-in-zypper.html">color support</a>, so if you want to start hacking, there is <a href="http://gitorious.org/opensuse/zypper">source code in gitorious</a>.</p>
<p style="text-align: center;"><a href="http://stick.gk2.sk/blog/wp-content/uploads/2010/03/zypper-flightgear.png"  rel="lightbox[1215]"><img class="size-thumbnail wp-image-1220" title="zypper flightgear" src="http://stick.gk2.sk/blog/wp-content/uploads/2010/03/zypper-flightgear-150x150.png" alt="" width="150" height="150" /></a> <a href="http://stick.gk2.sk/blog/wp-content/uploads/2010/03/emerge-flightgear.png"  rel="lightbox[1215]"><img class="size-thumbnail wp-image-1221" title="emerge flightgear" src="http://stick.gk2.sk/blog/wp-content/uploads/2010/03/emerge-flightgear-150x150.png" alt="" width="150" height="150" /></a></p>
<p style="text-align: justify;">Jano also showed me a neat trick how to obtain the results we wanted anyway. If you are in similar situation, just follow these steps (they are of course not suitable for everyday use, but still better than nothing):</p>
<ol>
<li>install package <code>libzypp-testsuite-tools</code></li>
<li>run <code>zypper install --debug-solver <em>pkg</em></code></li>
<li>cd into <code>/var/log/zypper.solverTestCase</code></li>
<li>open <code>solver-test.xml</code> in your favorite editor</li>
<li>add <code>&lt;graphic/&gt;</code> tag just above the <code>&lt;/trial&gt;</code> closing tag</li>
<li>run <code>/usr/lib/zypp/testsuite/bin/deptestomatic.multi solver-test.xml</code> (as normal user, you won&#8217;t get any graph when running as root)</li>
<li>you can pan the graph, rotate it with the right click or even save it to disk!</li>
</ol>
<p style="text-align: justify;">The resulting image can be seen here:</p>
<p style="text-align: center;"><a href="http://stick.gk2.sk/blog/wp-content/uploads/2010/03/solvertree-flightgear.png"  rel="lightbox[1215]"><img class="size-medium wp-image-1222 aligncenter" title="solvertree flightgear" src="http://stick.gk2.sk/blog/wp-content/uploads/2010/03/solvertree-flightgear-300x268.png" alt="" width="300" height="268" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://stick.gk2.sk/blog/2010/03/zypper-dependency-graph/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Scout finally searches in zypp repositories</title>
		<link>http://stick.gk2.sk/blog/2008/08/scout-finally-searches-in-repositories/</link>
		<comments>http://stick.gk2.sk/blog/2008/08/scout-finally-searches-in-repositories/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 14:52:47 +0000</pubDate>
		<dc:creator>Pavol Rusnak</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[satsolver]]></category>
		<category><![CDATA[scout]]></category>
		<category><![CDATA[tryme]]></category>
		<category><![CDATA[zypp]]></category>

		<guid isPermaLink="false">http://stick.gk2.sk/blog/?p=26</guid>
		<description><![CDATA[I finally implemented very important feature of scout: It is now able to search for binaries in all enabled zypp repositories. SAT-solver files are used for this, so user does not have to install any external index files. I really would like to thank Klaus Kaempf for his exhaustive help with python bindings for satsolver. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I finally implemented very important feature of <a href="http://en.opensuse.org/Scout">scout</a>: It is now able to search for binaries in all enabled zypp repositories. SAT-solver files are used for this, so user does not have to install any external index files. I really would like to thank <a href="http://news.opensuse.org/2008/05/23/people-of-opensuse-klaus-kampf/">Klaus Kaempf</a> for his exhaustive help with python bindings for satsolver. Another great news are that Werner Fink applied command-not-found patch for bash package, so 11.1 will probably contain this feature working out of the box! Current early implementation has one problem though: it is pretty slow comparing to older use-own-sqlite-database approach (2 seconds compared to 0.2 seconds). But it indexes more repositories at once (I have 14 enabled) and I believe the code could more optimized and thus whole search faster in the (near) future.</p>
<p>Feel free to test the packages from BuildService (follow the instructions on <a href="http://en.opensuse.org/Scout">wiki</a>) and tell me what you think of it ! <img src='http://stick.gk2.sk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://stick.gk2.sk/blog/2008/08/scout-finally-searches-in-repositories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
