<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=511&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Package manager magic incantations]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=511</link>
		<description><![CDATA[The most recent posts in Package manager magic incantations.]]></description>
		<lastBuildDate>Sat, 08 Jul 2017 12:27:31 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Package manager magic incantations]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=3200#p3200</link>
			<description><![CDATA[<p>Ooohhh! Very cool. Thanks for this</p>]]></description>
			<author><![CDATA[dummy@example.com (pekman)]]></author>
			<pubDate>Sat, 08 Jul 2017 12:27:31 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=3200#p3200</guid>
		</item>
		<item>
			<title><![CDATA[Re: Package manager magic incantations]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=3197#p3197</link>
			<description><![CDATA[<p>dpkg --get-selections &gt; package.list</p>]]></description>
			<author><![CDATA[dummy@example.com (Ged)]]></author>
			<pubDate>Sat, 08 Jul 2017 10:37:40 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=3197#p3197</guid>
		</item>
		<item>
			<title><![CDATA[Re: Package manager magic incantations]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=1002#p1002</link>
			<description><![CDATA[<p>This info has been copied, pasted, and filed away into my &quot;notes&quot; folder for future reference.&#160; It will come in handy.&#160; </p><p>Thanks fsr!</p>]]></description>
			<author><![CDATA[dummy@example.com (nixer)]]></author>
			<pubDate>Thu, 16 Mar 2017 11:40:31 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=1002#p1002</guid>
		</item>
		<item>
			<title><![CDATA[Package manager magic incantations]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=985#p985</link>
			<description><![CDATA[<p>I think I collected all of these from forums.debian.net (and I have not tested all of them.)</p><p>Edit: I&#039;m adding code boxes to the ones I test. Note that some of these commands may give you strange results if you have multiple repos enabled, like jessie,ascii,ceres. Don&#039;t do that!</p><p>-fsr</p><p>------------------------</p><p>To find which installed packages are from <strong>debian-multimedia</strong> (works as user):</p><div class="codebox"><pre><code>dpkg-query -W --showformat=&#039;${Package}\t${Maintainer}\n&#039; |grep &quot;Christian Marillat&quot;</code></pre></div><p>To show packages from <strong>contrib and non-free</strong>, either one of the following. The second is more specific. (e.g. the first one gives a false positive on libclucene-contribs1 because &quot;contrib&quot; is in the package name.)</p><div class="codebox"><pre><code>dpkg-query -W --showformat=&#039;${Package}\t${Section}\n&#039; | egrep -e &quot;non-free|contrib&quot;
dpkg-query -W --showformat=&#039;${Package}\t${Section}\n&#039; | awk &#039;/non-free|contrib/ { print $0 }&#039;</code></pre></div><p>Re: List installed software from non-free repo<br />bugsbunny » 2011-01-30 08:50</p><p>&#160; &#160; aptitude search ~i~s&quot;non-free~|contrib&quot;<br />or<br />&#160; &#160; aptitude search ~i~snon-free ~i~scontrib</p><p>If you want package <strong>names, section, and archive</strong> (testing, stable, unstable): </p><div class="codebox"><pre><code>aptitude search ~i~snon-free ~i~scontrib -F&quot;%p#  %s#  %t#&quot;</code></pre></div><p>or maybe <strong>name, version, archive</strong> </p><div class="codebox"><pre><code>aptitude search ~i -F&quot;%p# %v# %t#&quot;</code></pre></div><p>get package names and sizes, sorted by size:<br />dpkg-query -W --showformat=&#039;${Installed-Size}\t${Package}\n&#039; &gt; package_sizes<br />awk &#039;{ printf &quot;%.7d %s\n&quot;, $1, $2 &quot;\n&quot; }&#039; package_sizes | sort</p><p>Show which repo (which release) packages came from:<br />aptitude search &quot;?narrow(?installed,?archive(stable))&quot;<br />aptitude search &quot;?narrow(?installed,?archive(oldstable))&quot;</p><p>Or did not come from:<br />aptitude search &quot;?narrow(?installed,?not(?archive(stable)))&quot;</p><p>To get a list of dependencies from a .deb file:<br />$ dpkg -e d4x_2.5.7.1-5_amd64.deb<br />$ su<br />Password:<br /># DEPS=$(grep ^Depends DEBIAN/control | sed &#039;s/,/\n/g&#039; | sed &#039;s/(.*//;s/Depends: //;s/^ //&#039;)<br /># apt-get update<br /># apt-get install $DEPS&#160; &#160;### Bad idea!!! This installs everything in the list. There may be redundancies.<br /># apt-get clean<br /># exit</p><p>This line works if there&#039;s a &quot;|&quot; in the output.<br />DEPS=$(grep ^Depends DEBIAN/control | sed &#039;s/,/\n/g&#039; | sed &#039;s/(.*//;s/Depends: //;s/^ //;s/|.*$//&#039;)</p><p>Better way:<br />dpkg -i my-deb_5.0-6_i386.deb<br />apt-get -f install</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sun, 12 Mar 2017 14:36:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=985#p985</guid>
		</item>
	</channel>
</rss>
