<?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>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; apt-get</title> <atom:link href="http://www.ghacks.net/tag/apt-get/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 11 Feb 2012 09:52:46 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>What is it with the &#8220;dist-upgrade&#8221; option of apt-get?</title><link>http://www.ghacks.net/2010/03/11/what-is-it-with-the-dist-upgrade-option-of-apt-get/</link> <comments>http://www.ghacks.net/2010/03/11/what-is-it-with-the-dist-upgrade-option-of-apt-get/#comments</comments> <pubDate>Thu, 11 Mar 2010 12:08:16 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[apt-get]]></category> <category><![CDATA[distribution upgrade]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=23627</guid> <description><![CDATA[There has always been a bit of confusion when people learn they can do a full upgrade of their distribution from the command line. Most people don&#8217;t brave such a feat. Some because they don&#8217;t use the command line, and others because they are afraid an attempt to upgrade from the command line will wind [...]]]></description> <content:encoded><![CDATA[<p>There has always been a bit of confusion when people learn they can do a full upgrade of their distribution from the command line. Most people don&#8217;t brave such a feat. Some because they don&#8217;t use the command line, and others because they are afraid an attempt to upgrade from the command line will wind up fubaring their system.  And new users aren&#8217;t quite sure what the difference between <em>apt-get upgrade </em>and <em>apt-get dist-upgrade </em>is.</p><p>In this Ghacks Linux entry, I am going t dispel the myths and fear of the <em>dist-upgrade</em> command. Of course, as with everything PC-related, you know their are always risks when you do a major upgrade. With that warning out in the open, let&#8217;s set out to curb a little fear.</p><p><span
id="more-23627"></span><strong>Differences</strong></p><p>First I want to compare the two <em>apt-get</em> options: <em>upgrade </em>and <em>dist-upgrade</em>. The difference between these two is very simple. The <em>upgrade</em> option is used only to install all of the newest versions of the packages already installed on your machine. This is what happens when you see the upgrade upgrade packages through the Update Manager (You know, when you are made aware of notification in your panel and then Update Manager opens to show you which  updates are available for your system.)</p><p>The <em>dist-upgrade</em> option is quite different from <em>upgrade</em>. But just what does <em>dist-upgrade</em> do? Simple. The <em>dist-upgrade </em>option not only will upgrade all of the currently installed packages on your system it will also handle the dependency changes with new versions of packages. In other words, <em>dist-upgrade</em> will remove obsolete packages from your system, whereas <em>upgrade </em>will not. This function is out of necessity for upgrading from one distribution release to another.</p><p><strong>But doesn&#8217;t it upgrade my distro?</strong></p><p>Not necessarily. Although, by itself, <em>dist-upgrade</em>, will prepare your system for a distribution upgrade, the only way it will actually perform the upgrade to a new release is if you have changed your <strong>/etc/apt/sources.list<em> </em></strong>file to reflect the change. In other words, you have to add the repositories for the new distribution in the <strong>sources.list</strong> file before this can happen.</p><p>Well that sounds simple. Yes it is. But it is not the recommended plan of attack for upgrading to a new distribution. Although it will work, there is a better way&#8230;by command. The command <em>do-release-upgrade</em> was created specifically for upgrading the operating system to the latest release via the command line. Of course, before you issue this command you will want to check to see if an upgrade is available with the command <em>sudo do-release-upgrade -d. </em>When you do this you you be informed if a new release is available. If there is a new release available issue the command <em>sudo do-release-upgrade</em> and the upgrade process will begin. Of course this is a rather lengthy process and there are risks involved.You could lose packages you have manually installed (that are not supported by the new release) or (worst case scenario) your system could become unstable.</p><p>Distribution upgrades are always tricky. I have had them go exceedingly well and I have had them go very awry. It&#8217;s a gamble. But now you know exactly how to manage the task from the command line. You are now, officially, dangerous. ;-)</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/03/11/what-is-it-with-the-dist-upgrade-option-of-apt-get/feed/</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>Create your own mobile Ubuntu repository with APTonCD</title><link>http://www.ghacks.net/2009/09/12/create-your-own-mobile-ubuntu-repository-with-aptoncd/</link> <comments>http://www.ghacks.net/2009/09/12/create-your-own-mobile-ubuntu-repository-with-aptoncd/#comments</comments> <pubDate>Sat, 12 Sep 2009 21:52:45 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[apt]]></category> <category><![CDATA[apt-get]]></category> <category><![CDATA[deb]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[package management]]></category> <category><![CDATA[restore]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=16257</guid> <description><![CDATA[How many times have you installed Linux, tweaked it to perfection with various applications, only to have something happen and you have to re-install. Or you get that machine up and running with all the goods and then want to re-create the system on another machine. In either of these situations, the last thing you [...]]]></description> <content:encoded><![CDATA[<p>How many times have you installed Linux, tweaked it to perfection with various applications, only to have something happen and you have to re-install. Or you get that machine up and running with all the goods and then want to re-create the system on another machine. In either of these situations, the last thing you would want to do is to have to remember all of the applications and then spend the time to download them all again.</p><p>Well, there&#8217;s a handy tool that will take care of all of that for you. The tool is called APTonCD. What this tool does is create a CD with all of the applications you have installed &#8211; basically a portable repository. And, with the same tool, you can restore all of the packages on the CD &#8211; all from one convenient GUI.</p><p><span
id="more-16257"></span><strong>Features</strong></p><p>Choose specific packages on your local machine (or choose all).</p><p>Download entire repositories.</p><p>Burn CD/DVD from within APTonCD.</p><p>Create and restore from same GUI.</p><p>Auto-selection of dependencies option.</p><p>Easy to use.</p><p><strong>Installation</strong></p><p>The installation is simple:</p><ol><li>Open up your Add/Remove Software Application.</li><li>Enter &#8220;aptoncd&#8221; in the search bar (no quotes).</li><li>Mark APTonCD for installation.</li><li>Click Apply.</li></ol><p>Once the installation is complete you can close out the installation tool and get ready to use APTonCD.</p><p><strong>Starting and using APTonCD</strong></p><div
id="attachment_16265" class="wp-caption alignleft" style="width: 227px"><a
rel="attachment wp-att-16265" href="http://www.ghacks.net/2009/09/12/create-your-own-mobile-ubuntu-repository-with-aptoncd/aptoncd_main/"><img
class="size-full wp-image-16265" src="http://www.ghacks.net/wp-content/uploads/2009/09/aptoncd_main.png" alt="Figure 1" width="217" height="204" /></a><p
class="wp-caption-text">Figure 1</p></div><p>Once installed APTonCD is found in the Administration sub-menu of the System menu (GNOME desktop). Figure 1 shows the main window for the application. From this window you can either create a new CD or restore from an already existing CD.</p><p>To create a new CD click the Create button which will open up another window. In this new window (see Figure 2) the packages will be collected and, eventually, listed out for you. From this listing you can select the packages you want to include on your CD. By default all of the packages are selected.This window will also includ the total size of the completed installation. As you can see (in Figure 2) the total size of my restore CD will be 596 MB (some of the packages are not selected).</p><div
id="attachment_16266" class="wp-caption alignright" style="width: 224px"><a
rel="attachment wp-att-16266" href="http://www.ghacks.net/2009/09/12/create-your-own-mobile-ubuntu-repository-with-aptoncd/aptoncd_packages/"><img
class="size-full wp-image-16266" src="http://www.ghacks.net/wp-content/uploads/2009/09/aptoncd_packages.png" alt="Figure 2" width="214" height="202" /></a><p
class="wp-caption-text">Figure 2</p></div><p>If you want to add packages not already on your system you can click the Add drop down and select either Packages or Folder and then navigate to those files/folders. You can also open up Nautilus and drag and drop packages into the APTonCD window.</p><p>Once you have selected all of your packages you might want to go to the Edit menu and select &#8220;Auto-select Dependencies&#8221; to ensure all dependencies are met on your CD. Now it&#8217;s time to burn. When you&#8217;re ready click the Burn button which will open up a Disc Properties window (see Figure 3). In this new window you select your medium, the destination for the image file, a file name, and whether or not you want to create a meta-package. The meta-package is one package that</p><div
id="attachment_16267" class="wp-caption alignleft" style="width: 213px"><a
rel="attachment wp-att-16267" href="http://www.ghacks.net/2009/09/12/create-your-own-mobile-ubuntu-repository-with-aptoncd/aptoncd_burn/"><img
class="size-full wp-image-16267" src="http://www.ghacks.net/wp-content/uploads/2009/09/aptoncd_burn.png" alt="Figure 3" width="203" height="233" /></a><p
class="wp-caption-text">Figure 3</p></div><p>includes all packages on the CD as dependencies. This makes restoration very simple in that all APTonCD has to do is select one package to install.</p><p>When you click Apply APTonCD will begin to create the .iso image that you will then burn onto disk using your favorite CD burning software.</p><p>When the iso has been created a new window will open asking if you want to burn the CD/DVD. This window will allow you to select that application you want to burn with. If you chose you can click No and burn the CD/DVD later. I have found the burn portion of the APTonCD to be a bit flaky, so I just always burn by open up K3B and burning the image.</p><p><strong>Restoring<br
/> </strong></p><p>I would like to say that APTonCD can easily handle the installation of your packages with a simple click of a button. It can not. What APTon CD does is create portable repositories. So you can use the APTonCD restore option to basically add your CD repository for installation.  I have found, however, the best way to install the entirety of the packages is with the tried and true command line. This allows you to quickly get all of your packages installed with a couple of easy commands. What you will want to do is this:</p><ol><li>Insert your CD/DVD created by APTonCD.</li><li>Open up a command line.</li><li>Change to the directory where you CD is located with the command <em>cd /media/cdrom </em>(Note: Your CD might be located in a different directory).</li><li>Change into the <strong>packages</strong> directory with the command <em>cd packages.</em></li><li>Issue the command <em>sudo dpkg -i *deb<strong> </strong></em>which will install all packages on the CD.</li><li>After the installation is complete you MIGHT have to use Syanptic in the event their are broken packages.</li></ol><p>Close out the command prompt and check your Applications menu, you should be good to go.</p><p><strong>Final thoughts</strong></p><p>I hope that the developers of APTonCD will some day make it much easier to restore from the GUI. But even with the inconvenience of having to use the command line for quick restoration, APTonCD is a very handy tool.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/09/12/create-your-own-mobile-ubuntu-repository-with-aptoncd/feed/</wfw:commentRss> <slash:comments>19</slash:comments> </item> <item><title>Getting to Know Linux: Installing From Command Line</title><link>http://www.ghacks.net/2009/01/16/getting-to-know-linux-installing-from-command-line/</link> <comments>http://www.ghacks.net/2009/01/16/getting-to-know-linux-installing-from-command-line/#comments</comments> <pubDate>Fri, 16 Jan 2009 17:23:45 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[apt-get]]></category> <category><![CDATA[dpkg]]></category> <category><![CDATA[linux installation]]></category> <category><![CDATA[rpm]]></category> <category><![CDATA[urpmi]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=9935</guid> <description><![CDATA[For users new to the Linux operating system, nothing beats installing applications with the graphical Add/Remove Software applications found in the main menu of your desktop. But sometimes that ever-so-user-friendly GUI isn&#8217;t an option. Once such instance would be a headless server with no graphical desktop. Or maybe you&#8217;ve found a particular applicaiton that is [...]]]></description> <content:encoded><![CDATA[<p>For users new to the Linux operating system, nothing beats installing applications with the graphical Add/Remove Software applications found in the main menu of your desktop. But sometimes that ever-so-user-friendly GUI isn&#8217;t an option. Once such instance would be a headless server with no graphical desktop. Or maybe you&#8217;ve found a particular applicaiton that is only offered as a source package. For these you are going to have to know your way around command line installation.</p><p>In this article I am going to show you the basics of some of the more popular package management systems as well as the basics of installing via source. I will not spend too much time on each (otherwise this article could grow rather overwhelming). By the end of this article you should know how to install, querey, and remove applications with the more popular tools.</p><p><span
id="more-9935"></span><strong>Source</strong></p><p>Let&#8217;s start from the source. Generally when you download a package for installation that ends with tgz, gz, bz2, or *zip this will be a source installation. For these installations you are going to take advantage of some powerful compilation tools. But before you can start the compilation you have to unpack the source directory. If your file ends with a &#8220;bz2&#8243; you will first have to ucompress the file will the command <em>bunzip2 APPLICATION.tar.bz2. </em>This will result in a new file like <em>APPLICATION.tar. </em>Tar is an archive system that rolls up directories into a file. To unpack the directory you would issue a command similar to <em>tar xvf APPLICATION.tar</em>. Unpacking the directory would then result in a directory (in our example) <em>APPLICATION</em>.</p><p>If the downloaded file ended in tgz or gz then you have a compressed archive and you simply have to add the &#8220;z&#8221; switch to the <em>tar </em>command to both uncompress and unpack the archive. This command would look like <em>tar xvfz APPLICATION.tgz, </em>which would result in the directory <em>APPLICATION.</em></p><p>Once you have your directory unpacked you need to change into that directory (with the command <em>cd APPLICATION). </em>Once inside this directory issue the <em>ls</em> command. You will most likely see either a README file or an INSTALL file. Open those up and see if there are any special instructions for installation. If there are no special instructions then the standard compilation steps will most likely work. Here&#8217;s how this works:</p><ul><li>su to the root user</li><li>From within the <em>APPLICATION</em> directory issue the command <em>./configure</em>. This will generate a make file for the compilation.</li><li>Issue the command <em>make</em>.</li><li>Issue the command <em>make install</em></li></ul><p>That&#8217;s it. If all went as planned, the application should be installed.</p><p><strong>RPM</strong></p><p>RPM is the Red Hat Package Manager. Installing via RPM is actually quite simple. Here&#8217;s how this works. Once you have downloaded the rpm file you want to install, open up a terminal window and issue the following commands:</p><ul><li>su (you will be prompted to enter the root password)</li><li>rpm -ivh filename.rpm (where <em>filename</em> is the actual name of the file you downloaded)</li></ul><p>That&#8217;s it. If all went well your package should now be installed.</p><p>If you want to make sure your package was installed you can issue the command <em>rpm -q filename</em> and you should see the name of the package and the version that is installed.</p><p>If you want to remove that package you just installed (or another package) issue the command:</p><p><em>rpm -e filename</em></p><p>and the package will disappear.</p><p><strong>APT-GET</strong></p><p>This is one of the best installation systems available. With apt-get you do not have to download a package, you just have to know the name. Here&#8217;s how apt-get works (I am going to assume Ubuntu is the distribution, so you&#8217;ll make use of <em>sudo</em>). Open up a terminal window and issue the following:</p><p><em>sudo apt-get install package_name</em></p><p>to install the needed package.</p><p>To remove a package with apt-get you would issue the command:</p><p><em>sudo apt-get remove package_name</em></p><p>to remove the package from your system.</p><p><strong>URPMI</strong></p><p>The urpmi system is from the Mandriva distribution and is similar to apt-get. To install a package with <em>urpmi</em> you would open up a terminal window, become the root user, and issue the following command:</p><p><em>urpmi package_name</em></p><p>to install the needed package.</p><p>To remove a package with this system you would issue the command:</p><p><em>urpme package_name</em></p><p>and the package will be removed.</p><p><strong>DPKG</strong></p><p>This is the Debian installer and is as easy to use as any other. To use dpkg you will open up a terminal window and issue the following command to install a package:</p><p><em>sudo dpkg -i package_name</em></p><p>to install a package.</p><p>To remove a package issue the command:</p><p><em>sudo dpkg -r package_name</em></p><p>and the package will be gone.</p><p><strong>Final Thoughts</strong></p><p>There you go. A very basic description of package management with the more popular tools. Yes, there is much, much more to them than what you have just read, but this will give you enough of a foundation to get you going</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/01/16/getting-to-know-linux-installing-from-command-line/feed/</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>Installing Linux applications with Aptitude</title><link>http://www.ghacks.net/2008/12/22/installing-linux-applications-with-aptitude/</link> <comments>http://www.ghacks.net/2008/12/22/installing-linux-applications-with-aptitude/#comments</comments> <pubDate>Mon, 22 Dec 2008 15:37:31 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[apt]]></category> <category><![CDATA[apt-get]]></category> <category><![CDATA[Aptitude]]></category> <category><![CDATA[installing in Linux]]></category> <category><![CDATA[ncurses]]></category> <category><![CDATA[ubuntu]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=9271</guid> <description><![CDATA[For those of you who like a little more power behind your tools you will certainly appreciate the Aptitude front-end for the apt package management system. Aptitude is based on the ncurses computer terminal library so you know it&#8217;s a pseudo-hybrid between console and gui. Aptitude has a powerful search system as well as an [...]]]></description> <content:encoded><![CDATA[<p>For those of you who like a little more power behind your tools you will certainly appreciate the Aptitude front-end for the apt package management system. Aptitude is based on the ncurses computer terminal library so you know it&#8217;s a pseudo-hybrid between console and gui. Aptitude has a powerful search system as well as an outstanding ncurses-based menu system that allows you to move around selections with the tab key and the arrow keys.</p><p>But don&#8217;t think, when you fire up Aptitude, you are going to be greeted with a sexy graphical front end. No. When you start up this application you are going to be teleported back into the mid-90s when front-end applications were just arriving onto the scene. But Aptitude is so much more than that. Aptitude is a powerful tool to help you use the apt package management system.</p><p><span
id="more-9271"></span>To open Aptitude you need to first open a terminal emulator (such as aterm, gnome-terminal, or konsole). I will warn you, if you are like me and use Aterm in full-blown transparency Aptitude might look at little strange. So instead you should fire up another terminal or use Aterm without transparency.</p><p>To start up aptitude you will need root or sudo access. Using sudo you would start Aptitude like so: <em>sudo aptitude</em>.</p><div
id="attachment_9272" class="wp-caption alignnone" style="width: 510px"><img
src="http://www.ghacks.net/wp-content/uploads/2008/12/aptitude_main-500x341.png" alt="Aptitude Main Window" title="aptitude_main" width="500" height="341" class="size-medium wp-image-9272" /><p
class="wp-caption-text">Aptitude Main Window</p></div><p>There are two main sections to focus on. First is the main window. This is where you will see a listing of the what is available. As you can see from the image above there are upgradable packages, new packages, etc. What you don&#8217;t see is the Aptitude menu. To access this menu you have to hit the Ctrl-T combination (that is the Control key plus the &#8220;t&#8221; key at the same time.) When you open up the Aptitude menu you navigate this menu using the arrow keys.</p><div
id="attachment_9273" class="wp-caption alignnone" style="width: 510px"><img
src="http://www.ghacks.net/wp-content/uploads/2008/12/aptitude_menu-500x341.png" alt="Aptitude Menu" title="aptitude_menu" width="500" height="341" class="size-medium wp-image-9273" /><p
class="wp-caption-text">Aptitude Menu</p></div><p>Before you actually get into installing packages with Aptitude, you have to select packages to install. You do this outside of the menu in the main window. Without the menu open you can move up and down the window entries with the arrow keys. When you land on an entry you want to expand you hit the Enter key. Let&#8217;s install something.</p><p>Using the arrow keys move down to the &#8220;Not Installed Packages&#8221; entry and hit Enter. This will expand to reveal a number of sub-menus. Now scroll down to the Net sub-menu and hit Enter. Yet another sub-menu will appear containing three entries. Move to the  &#8220;main&#8221; main entry and hit Enter to reveal all of the possible applications to install.</p><div
id="attachment_9274" class="wp-caption alignnone" style="width: 510px"><img
src="http://www.ghacks.net/wp-content/uploads/2008/12/aptitude_net-500x341.png" alt="Network Applications Available" title="aptitude_net" width="500" height="341" class="size-medium wp-image-9274" /><p
class="wp-caption-text">Network Applications Available</p></div><p>Let&#8217;s install Gobby (a text editor/source editor that can do online collaboration). With the arrow keys move down until you see the Gobby entry. When you find Gobby hit the Enter key which will reveal all of the gory details behind Gobby.</p><div
id="attachment_9275" class="wp-caption alignnone" style="width: 510px"><img
src="http://www.ghacks.net/wp-content/uploads/2008/12/aptitude_gobby-500x341.png" alt="Gobby details" title="aptitude_gobby" width="500" height="341" class="size-medium wp-image-9275" /><p
class="wp-caption-text">Gobby details</p></div><p>This should tell you everything you need to help you make the decision to install or not to install Gobby. Let&#8217;s install it.</p><p>To select an application for installation hit the &#8220;+&#8221; key (you do have to use the Shift key for this) to mark the package for installation. Now hit the &#8220;g&#8221; key and the installation process should begin. Don&#8217;t be fooled when it seems as if Aptitude has dropped out of ncurses mode and is in full console mode, it will return to it&#8217;s ncurses glory when after you hit the Enter key when prompted (after installation is complete.)</p><p>When installation is complete you will return to the description of the package you just installed. To go back to the main window you can open up the menu (Ctrl-t) and then using the right arrow key go to the View entry. Using the down key select &#8220;Prev&#8221; to go to the previous screen. You can also hit F7 for this same action.</p><p>And there you are, you have just installed an application with Aptitude. Of course Aptitude is much more powerful than this. In later articles we&#8217;ll discuss searching, upgrading, removing, and much more with Aptitude.</p><p>In the mean time, have fun installing with Aptitude!</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2008/12/22/installing-linux-applications-with-aptitude/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> </channel> </rss>
