<?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>Make Tech Easier &#187; package management</title>
	<atom:link href="http://maketecheasier.com/tag/package-management/feed" rel="self" type="application/rss+xml" />
	<link>http://maketecheasier.com</link>
	<description>Uncomplicating the complicated, making life easier</description>
	<lastBuildDate>Fri, 20 Nov 2009 13:39:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Backup And Install Your Linux Applications With AptOnCD</title>
		<link>http://maketecheasier.com/backup-instal-your-linux-applications-with-aptoncd/2009/06/13</link>
		<comments>http://maketecheasier.com/backup-instal-your-linux-applications-with-aptoncd/2009/06/13#comments</comments>
		<pubDate>Sat, 13 Jun 2009 12:59:04 +0000</pubDate>
		<dc:creator>Damien</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[package management]]></category>
		<category><![CDATA[Synaptic Package Manager]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=5308</guid>
		<description><![CDATA[Everytime after you have reformatted the hard disk and reinstalled the Linux distro of your choice, the one troublesome thing that you need to do is to re-download all your applications and restore all the settings. This is made worst when your wireless connection just don&#8217;t work with the newly installed distro. How are you [...]<p><strong><a href="http://maketecheasier.com/backup-instal-your-linux-applications-with-aptoncd/2009/06/13">How to Backup And Install Your Linux Applications With AptOnCD</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>



Related posts:<ol><li><a href='http://maketecheasier.com/backup-ubuntu-with-remastersys/2008/12/22' rel='bookmark' title='Permanent Link: How To Backup Your Ubuntu System With Remastersys'>How To Backup Your Ubuntu System With Remastersys</a></li><li><a href='http://maketecheasier.com/backup-gmail-in-ubuntu-intrepid/2008/12/27' rel='bookmark' title='Permanent Link: How To Backup Gmail In Ubuntu Intrepid'>How To Backup Gmail In Ubuntu Intrepid</a></li><li><a href='http://maketecheasier.com/appnr-%e2%80%93-install-ubuntu-applications-from-your-firefox-browser/2008/10/17' rel='bookmark' title='Permanent Link: Appnr – Install Ubuntu Applications from your Firefox browser'>Appnr – Install Ubuntu Applications from your Firefox browser</a></li><li><a href='http://maketecheasier.com/use-linux-applications-on-windows-without-having-to-install-linux/2008/05/27' rel='bookmark' title='Permanent Link: Use Linux Applications On Windows, Without Having to Install Linux'>Use Linux Applications On Windows, Without Having to Install Linux</a></li><li><a href='http://maketecheasier.com/automate-your-system-backup-with-back-in-time/2009/04/16' rel='bookmark' title='Permanent Link: Automate Your System Backup With Back In Time'>Automate Your System Backup With Back In Time</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="aptoncd4" src="http://images.maketecheasier.com/2009/06/aptoncd-logo.jpg" alt="aptoncd4" width="97" height="80" />Everytime after you have reformatted the hard disk and reinstalled the Linux distro of your choice, the one troublesome thing that you need to do is to re-download all your applications and restore all the settings. This is made worst when your wireless connection just don&#8217;t work with the newly installed distro. How are you going to download all your applications when you can&#8217;t even connect to the Internet?</p>
<p><a href="http://aptoncd.sourceforge.net" target="_blank">APTonCD</a> aims to solve this problem by backing up all your packages into a Cd/DVD. You can then install your applications right from the CD/DVD. If you want to save up on CD, you can even store the data as an iso file and restore your system right from the ISO file.</p>
<p>Here&#8217;s how it is done:</p>
<p>Install APTonCD</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> aptoncd</pre></div></div>

<p>you can also install it via the Synaptic Package Manager.</p>
<p>Go to <em>System-&gt;Adminstration-&gt;APTonCD</em></p>
<p><img class="alignnone" title="aptoncd1" src="http://images.maketecheasier.com/2009/06/aptoncd1.jpg" alt="aptoncd1" width="487" height="373" /></p>
<h3>Backing up package</h3>
<p>Click the <em>Create</em> button.</p>
<p>APTonCD will then scan your system for all the package that you have downloaded/installed previously.</p>
<p><img class="alignnone" title="aptoncd2" src="http://images.maketecheasier.com/2009/06/aptoncd2.jpg" alt="aptoncd2" width="524" height="555" /></p>
<p>When it is done scanning, you can then select the package that you want to backup. Click Burn to start the backup process.</p>
<p>Enter the destination to store the image. Depending on the size of the file, you might need to choose DVD instead of CD.</p>
<p><img class="alignnone" title="aptoncd3" src="http://images.maketecheasier.com/2009/06/aptoncd3.jpg" alt="aptoncd3" width="316" height="365" /></p>
<p>When it is done, it will prompt you to burn into a CD/DVD. Click <em>Cancel</em> if you only want to store it as an ISO file.</p>
<p><img class="alignnone" title="aptoncd4" src="http://images.maketecheasier.com/2009/06/aptoncd4.jpg" alt="aptoncd4" width="414" height="283" /></p>
<p>This is all you need to do for the backing up process.</p>
<h3>Restoring the package</h3>
<p>To restore the package (assuming you have created the CD media), simply pop in the CD/DVD. Your computer will scan the disc and prompt up a window asking if you want to restore the package. Click Yes. Once that&#8217;s done, you will be able to install applications from the Synaptic Package Manager (or <em>apt-get</em>) without Internet connection.</p>
<p><p><script type="text/javascript"><!--
google_ad_client = "pub-8765285789552883";
/* MTE body ad300x250, created 5/17/09 */
google_ad_slot = "3980792036";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p></p>
<p><strong><a href="http://maketecheasier.com/backup-instal-your-linux-applications-with-aptoncd/2009/06/13">How to Backup And Install Your Linux Applications With AptOnCD</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>


<p>Related posts:<ol><li><a href='http://maketecheasier.com/backup-ubuntu-with-remastersys/2008/12/22' rel='bookmark' title='Permanent Link: How To Backup Your Ubuntu System With Remastersys'>How To Backup Your Ubuntu System With Remastersys</a></li><li><a href='http://maketecheasier.com/backup-gmail-in-ubuntu-intrepid/2008/12/27' rel='bookmark' title='Permanent Link: How To Backup Gmail In Ubuntu Intrepid'>How To Backup Gmail In Ubuntu Intrepid</a></li><li><a href='http://maketecheasier.com/appnr-%e2%80%93-install-ubuntu-applications-from-your-firefox-browser/2008/10/17' rel='bookmark' title='Permanent Link: Appnr – Install Ubuntu Applications from your Firefox browser'>Appnr – Install Ubuntu Applications from your Firefox browser</a></li><li><a href='http://maketecheasier.com/use-linux-applications-on-windows-without-having-to-install-linux/2008/05/27' rel='bookmark' title='Permanent Link: Use Linux Applications On Windows, Without Having to Install Linux'>Use Linux Applications On Windows, Without Having to Install Linux</a></li><li><a href='http://maketecheasier.com/automate-your-system-backup-with-back-in-time/2009/04/16' rel='bookmark' title='Permanent Link: Automate Your System Backup With Back In Time'>Automate Your System Backup With Back In Time</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/backup-instal-your-linux-applications-with-aptoncd/2009/06/13/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Things You Need To Know To Become An Apt Guru</title>
		<link>http://maketecheasier.com/become-an-apt-guru/2009/02/24</link>
		<comments>http://maketecheasier.com/become-an-apt-guru/2009/02/24#comments</comments>
		<pubDate>Tue, 24 Feb 2009 12:53:42 +0000</pubDate>
		<dc:creator>Joshua Price</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apt]]></category>
		<category><![CDATA[Aptitude]]></category>
		<category><![CDATA[Command]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[package management]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=2917</guid>
		<description><![CDATA[Quite possibly the most distinguishing feature of Debian-based Linux distributions (such as Ubuntu, Mepis, Knoppix, etc) is their package system &#8211; APT. Also known as the Advanced Package Tool, APT was first introduced in Debian 2.1 in 1999.  APT is not so much a specific program as it is a collection of separate, related packages.
With [...]<p><strong><a href="http://maketecheasier.com/become-an-apt-guru/2009/02/24">Things You Need To Know To Become An Apt Guru</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>



Related posts:<ol><li><a href='http://maketecheasier.com/install-software-from-a-tarball-in-linux/2009/06/25' rel='bookmark' title='Permanent Link: How to Install Software from a Tarball in Linux'>How to Install Software from a Tarball in Linux</a></li><li><a href='http://maketecheasier.com/run-32-bit-apps-in-64-bit-linux/2009/08/10' rel='bookmark' title='Permanent Link: How to Run 32-bit Apps in 64-bit Linux'>How to Run 32-bit Apps in 64-bit Linux</a></li><li><a href='http://maketecheasier.com/backup-instal-your-linux-applications-with-aptoncd/2009/06/13' rel='bookmark' title='Permanent Link: How to Backup And Install Your Linux Applications With AptOnCD'>How to Backup And Install Your Linux Applications With AptOnCD</a></li><li><a href='http://maketecheasier.com/convert-flac-to-mp3-easily-with-soundconverter/2008/10/22' rel='bookmark' title='Permanent Link: How to Convert .FLAC to .MP3 In Ubuntu'>How to Convert .FLAC to .MP3 In Ubuntu</a></li><li><a href='http://maketecheasier.com/freemind-mind-mapping-software-for-all-platforms/2008/04/10' rel='bookmark' title='Permanent Link: FreeMind: Mind Mapping Software For All Platforms'>FreeMind: Mind Mapping Software For All Platforms</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-2971" src="http://images.maketecheasier.com/2009/02/apt.png" alt="apt" width="200" height="200" />Quite possibly the most distinguishing feature of Debian-based Linux distributions (such as Ubuntu, Mepis, Knoppix, etc) is their package system &#8211; APT. Also known as the Advanced Package Tool, APT was first introduced in Debian 2.1 in 1999.  APT is not so much a specific program as it is a collection of separate, related packages.</p>
<p>With APT, Linux gained the ability to install and manage software packages in a much simpler and more efficient way than was previously possible. Before its introduction, most software had to be installed either by manually compiling the source code, or using individual packages with no automatic dependency handling (such as RPM files).  This could mean hours of  &#8220;dependency hell&#8221; even to install a fairly trivial program.</p>
<p>In this article, we are going to highlight some of APT&#8217;s best features, and share a few of the lesser known features of APT and its cousin <em>dpkg</em>.  Believe it or not, APT can even be used to <a href="http://algebraicthunk.net/~dburrows/blog/entry/package-management-sudoku/" target="_blank">solve Sodoku puzzles</a>!</p>
<h3>dpkg</h3>
<p>The base of Debian&#8217;s package system is dpkg. It performs all the low level functions of software installation. If you were so inclined, you could use dpkg alone to manage your software. It can install, remove, and provide information on your system&#8217;s software collection. Here are some of my favorite features.</p>
<h3>Basic installation of local file</h3>
<p>Some software authors create Debian packages of their programs, but do not provide a repository for APT to fetch from. In this case they just provide a downloadable .deb file. This is very similar to RPM packages, or even Windows .msi files. It contains all the files and configuration information necessary to install the program. To install a program from a .deb file, you simply need</p>
<p class="codeblock">dpkg -i MyNewProgram.deb</p>
<p>The <em>-i</em>, as you may guess, tells dpkg to install this piece of software.</p>
<h3>Listing a package&#8217;s contents</h3>
<p>You may find yourself, after installing a program, unable to figure out how to run that program.  Sometimes, you need to know where to find the config files for your new game. Dpkg provides an easy way to list all the files that belong to a particular package.</p>
<p class="codeblock">dpkg -L MyNewProgram</p>
<p>Note that case matters.  -L and -l are entirely different options.</p>
<p>Often, a package has so many files it can be difficult to sift through the list to find the one(s) you&#8217;re looking for. If that&#8217;s the case, we can use <em>grep</em> to filter the results. The following command does the same as above, but only shows results that have &#8220;bin&#8221; in the path, such as /usr/bin.</p>
<p class="codeblock">dpkg -L MyNewProgram | grep bin</p>
<p>I won&#8217;t even begin to go into the awesome power that is <em>grep</em>, but in its simplest form it can be used, like above, to quickly and easily filter a program&#8217;s output.</p>
<h3>Finding the owner of a file</h3>
<p>Occasionally, you find yourself in a situation that&#8217;s the reverse of the section above. You have a file, but you don&#8217;t know what package it belongs to. Once again, dpkg has you covered.</p>
<p class="codeblock">dpkg -S mysteryfile.cfg</p>
<p>This will tell you which package created/owns that file.</p>
<h3>Listing what you&#8217;ve got installed</h3>
<p>Let&#8217;s say you&#8217;re about to reinstall your system, and you want to know exactly what you&#8217;ve already got installed. You could open up an app like Synaptic and set a filter to show everything marked as &#8220;installed&#8221;, or you could do it quickly and easily from the command line with dpkg.</p>
<p class="codeblock">dpkg -l</p>
<p>or</p>
<p class="codeblock"><code>dpkg --get-selections</code></p>
<p>That will give you one big long list of everything you&#8217;ve got installed.  Advanced users could use these commands to create a text file with all their packages listed, which could be fed into APT later to reinstall everything at once!</p>
<h3>Reconfiguring a package</h3>
<p>When a .deb package is installed, it goes through a few stages. One of those is the configuration stage, where developers can put a series of actions that take place once all the files have been installed to a proper location. This includes things like start/stopping services, or creating logs, or other such things. Sometimes you need to repeat those steps, without going through the whole reinstallation process.  For that, you use:</p>
<p class="codeblock">dpkg-reconfigure (packagename)</p>
<p>This will redo all the post-install steps needed for that package without forcing you to reinstall.  Believe me, this one comes in handy.</p>
<h3>Aptitude/Apt-get</h3>
<p>There&#8217;s some debate and confusion regarding these two tools. Many Linux users have a hard time telling when/why to use one over the other, as they do roughly the same thing.</p>
<p>Short answer: use Aptitude.</p>
<p>Long answer: Both can be used to manage all software installations removals, and both will do a good job. The Debian team officially recommends using Aptitude. It&#8217;s not that it&#8217;s a LOT better than apt-get, but that it&#8217;s a little better, in lots of ways. You can use either one and it will meet your package management needs, but <strong>don&#8217;t</strong> mix and match on the same system. Pick one and stick with it. </p>
<h3>Finding the right package</h3>
<p>I often find myself in need of software to do a certain thing, but I don&#8217;t know the name of any programs to do it. For example, I may need a FLAC player, but don&#8217;t know offhand what player will work&#8230;</p>
<p>Aptitude:</p>
<p class="codeblock">aptitude search flac</p>
<p>Classic APT:</p>
<p class="codeblock">apt-cache search flac</p>
<p>You&#8217;ll get a list of available packages that have &#8220;flac&#8221; in the name or description.</p>
<h3>Preventing a package from updating</h3>
<p>On some occasions, I have a version of a package that I want to keep even though there may be upgrades. When it comes to my kernel, for example, I prefer to update manually.</p>
<p>Aptitude:</p>
<p class="codeblock">aptitude hold (packagename)</p>
<p>dpkg:</p>
<p class="codeblock"><code>echo "(packagename) hold" | dpkg --set-selections</code></p>
<h3>Upgrading</h3>
<p>Both Aptitude and classic APT provide two methods of upgrading your system: <em>upgrade</em> and <em>dist-upgrade</em>.  This is another thing that causes some confusion.  An upgrade is an upgrade, right?  Well not exactly.</p>
<p>A regular <em>upgrade</em> will read your list of packages, check online for newer versions, and install them as needed.  It will NOT, however, perform any upgrades that would require new packages installed, or existing ones removed.  This is what <em>dist-upgrade</em> is for.  It will get every newer version it finds, even if it involves installing something new (such as a dependency) or removing an existing package (if it&#8217;s obsolete or is no longer needed).</p>
<p>Aptitude:</p>
<p class="codeblock">aptitude safe-upgrade<br />
aptitude full-upgrade</p>
<p>Classic APT:</p>
<p class="codeblock">apt-get upgrade<br />
apt-get dist-upgrade</p>
<h3>Learn about a package</h3>
<p>Finally, some times you just need to know a little about a package.  What version is it?  Who maintains it?  Is it already installed?  All these things and more you can find with:</p>
<p>Aptitude:</p>
<p class="codeblock">aptitude show (packagename)</p>
<p>APT:</p>
<p class="codeblock">apt-cache showpkg (packagename)</p>
<p>All of the programs mentioned here are capable of far more than I&#8217;ve shown.  The tips here should go a long way in helping you use this amazing package system to its full potential.</p>
<p>Also, for those with the patience to read all the way to the end,</p>
<p class="codeblock">apt-get moo</p>
<p><p><script type="text/javascript"><!--
google_ad_client = "pub-8765285789552883";
/* MTE body ad300x250, created 5/17/09 */
google_ad_slot = "3980792036";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p></p>
<p><strong><a href="http://maketecheasier.com/become-an-apt-guru/2009/02/24">Things You Need To Know To Become An Apt Guru</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>


<p>Related posts:<ol><li><a href='http://maketecheasier.com/install-software-from-a-tarball-in-linux/2009/06/25' rel='bookmark' title='Permanent Link: How to Install Software from a Tarball in Linux'>How to Install Software from a Tarball in Linux</a></li><li><a href='http://maketecheasier.com/run-32-bit-apps-in-64-bit-linux/2009/08/10' rel='bookmark' title='Permanent Link: How to Run 32-bit Apps in 64-bit Linux'>How to Run 32-bit Apps in 64-bit Linux</a></li><li><a href='http://maketecheasier.com/backup-instal-your-linux-applications-with-aptoncd/2009/06/13' rel='bookmark' title='Permanent Link: How to Backup And Install Your Linux Applications With AptOnCD'>How to Backup And Install Your Linux Applications With AptOnCD</a></li><li><a href='http://maketecheasier.com/convert-flac-to-mp3-easily-with-soundconverter/2008/10/22' rel='bookmark' title='Permanent Link: How to Convert .FLAC to .MP3 In Ubuntu'>How to Convert .FLAC to .MP3 In Ubuntu</a></li><li><a href='http://maketecheasier.com/freemind-mind-mapping-software-for-all-platforms/2008/04/10' rel='bookmark' title='Permanent Link: FreeMind: Mind Mapping Software For All Platforms'>FreeMind: Mind Mapping Software For All Platforms</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/become-an-apt-guru/2009/02/24/feed</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
	</channel>
</rss>
