<?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>Jetpack Flight Log &#187; aptitude</title>
	<atom:link href="http://jetpackweb.com/blog/tags/aptitude/feed/" rel="self" type="application/rss+xml" />
	<link>http://jetpackweb.com/blog</link>
	<description>Rock{et}ing the interweb</description>
	<lastBuildDate>Wed, 19 May 2010 22:21:53 +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>Linux Tip: Keep track of packages you have installed</title>
		<link>http://jetpackweb.com/blog/2009/09/14/linux-tip-keep-track-of-packages-you-have-installed/</link>
		<comments>http://jetpackweb.com/blog/2009/09/14/linux-tip-keep-track-of-packages-you-have-installed/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 01:12:01 +0000</pubDate>
		<dc:creator>Brian Racer</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://jetpackweb.com/blog/?p=369</guid>
		<description><![CDATA[During development on a linux system, you probably install many packages using your favorite package manager. When you have to use a new system, or reimage your current one, it can be a pain to remember all the packages you had setup. One solution is to keep a list of the packages installed after the [...]]]></description>
			<content:encoded><![CDATA[<p>During development on a linux system, you probably install many packages using your favorite package manager. When you have to use a new system, or reimage your current one, it can be a pain to remember all the packages you had setup. One solution is to keep a list of the packages installed after the OS load, and then periodically generate a list of what has been added since.</p>
<p>On a freshly installed system, create the starting baseline list of packages:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family: Monaco, monospace;"><span class="co0"># On Debian based systems(Ubuntu):</span>
<span class="kw2">dpkg</span> <span class="re5">--get-selections</span> <span class="sy0">&gt;</span> packages-alpha.txt
&nbsp;
<span class="co0"># Or CentOS/Fedora:</span>
yum list installed <span class="sy0">&gt;</span> packages-alpha.txt</pre></div></div>

<p>You can run the command again at a later time, concatenating the output into a different file so you can view what has changed since the original system setup. Use a diff tool like diff3, vimdiff, or meld:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family: Monaco, monospace;">meld packages-alpha.txt packages-omega.txt</pre></div></div>

<p>On Debian systems, once you have that file you can use it in a new or different system to mark packages to install using the <strong>&#8211;set-selection</strong> parameter:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family: Monaco, monospace;"><span class="kw2">dpkg</span> <span class="re5">--set-selections</span> <span class="sy0">&lt;</span> packages-omega.txt
<span class="kw2">sudo</span> <span class="kw2">apt-get</span> upgrade</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://jetpackweb.com/blog/2009/09/14/linux-tip-keep-track-of-packages-you-have-installed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
