<?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; dpkg</title> <atom:link href="http://www.ghacks.net/tag/dpkg/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>Installing applications in Linux with a double click</title><link>http://www.ghacks.net/2010/07/14/installing-applications-in-linux-with-a-double-click/</link> <comments>http://www.ghacks.net/2010/07/14/installing-applications-in-linux-with-a-double-click/#comments</comments> <pubDate>Wed, 14 Jul 2010 11:21:13 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Desktop Manager]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[application installation]]></category> <category><![CDATA[apt]]></category> <category><![CDATA[deb]]></category> <category><![CDATA[dpkg]]></category> <category><![CDATA[Fedora]]></category> <category><![CDATA[package management]]></category> <category><![CDATA[rpm]]></category> <category><![CDATA[ubuntu]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=28235</guid> <description><![CDATA[For many, the biggest barrier to adopting Linux is the challenge of having to use the command line for too many tasks. One of these tasks, it is though, is the installation of applications. While everyone has seen this is not true of any application installed via the Add/Remove Software utility (which nearly every distribution [...]]]></description> <content:encoded><![CDATA[<p>For many, the biggest barrier to adopting Linux is the challenge of having to use the command line for too many tasks. One of these tasks, it is though, is the installation of applications. While everyone has seen this is not true of any application installed via the Add/Remove Software utility (which nearly every distribution has), it&#8217;s not often seen for applications that are downloaded from the web.</p><p>We all know how simple it is to install downloaded applications on the Windows platform. What would you say if I told you it was just as easy to install a downloaded application on the Linux platform? And not just on Ubuntu&#8230;but on other Linux distributions. Would you be surprised? Would you be in disbelief? Well, for those disbelievers I have the proof for you today. In this article I will show you how to install downloaded applications, in Linux, with a double click.</p><p><span
id="more-28235"></span><strong>What this applies to</strong></p><p>Before you think this is going to show you how to install an application from source with a double click, think again. This will only apply to the packages created for a systems package manager. What that means is you can install .deb files in an apt-based (or dpkg-based) system (such as Ubuntu) or .rpm files in an RPM-based system (such as Fedora). If you are wanting to install from source, you will have to employ the command line tool. For the rest&#8230;you are just a double click away from installation goodness.</p><p><strong>The dependency issue</strong></p><p>There can, of course, be issues with this installation. The biggest issue will be dependencies. If a file you are attempting to install has unmet dependencies it will not install. When this happens you can try to meet those dependencies by using your Add/Remove Software tool. Or you can attempt to download the dependency files (after googling them and finding the right version) and install in the same way you are going to install the main application. This is one of the many reasons why it is always best to use your package management system. There are, of course, times when you need a package installed that it not in your package management system and there are no repositories for that tool. That is when this method will come into play.</p><p><strong>How it works</strong></p><p>Believe it or not, it works in much the same way as it does on the Windows  platform. Let&#8217;s see just how this works. I am going to install a package (one that I will writing about very soon) called <a
title="Hot Copy" href="http://www.r1soft.com/tools/linux-hot-copy/" target="_blank">Hot Copy</a>. For that tool I have downloaded the .zip file (which contains binaries in both .deb and .rpm format. That file will have downloaded to my <strong>~/Downloads</strong> directory. Here are the steps for installation (I will be explaining this from the GNOME desktop).</p><p><strong>Step 1</strong></p><p>Open up Nautilus to the <strong>~/Downloads</strong> directory. In this directory you will see the .zip file you downloaded.</p><p><strong> </strong></p><div
id="attachment_28236" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/07/install_1.png"><img
class="size-medium wp-image-28236 " src="http://www.ghacks.net/wp-content/uploads/2010/07/install_1-500x421.png" alt="" width="300" height="253" /></a><p
class="wp-caption-text">Figure 1</p></div><p><strong>Step 2</strong></p><p>Double click on the newly downloaded file. This will open up the archive file to display all of the contents. In the case of this file there will be two directories and a help file. The two directories will be for each of the different hardware architecture (x86 for 32 bit systems and x86_64 for 64 bit systems). Double click on the directory for your machines architecture to reveal the included installation files (see Figure 1).</p><p><strong>Step 3</strong></p><div
id="attachment_28237" class="wp-caption alignright" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/07/gdebi.png"><img
class="size-medium wp-image-28237 " src="http://www.ghacks.net/wp-content/uploads/2010/07/gdebi-500x383.png" alt="" width="300" height="230" /></a><p
class="wp-caption-text">Figure 2</p></div><p>For the Ubuntu installation I am going to install both .deb files in this package. First I will double click the hotcopy .deb file. When I do this it will open up the GDebi package installation tool. When this new window opens (see Figure 2)  all I have to do is click the Install package buttton. GDebi will ask for the users password to complete the installation. You might recognize GDebi from any time you have downloaded a .deb file from the web. it&#8217;s the same routine.</p><p>When the installation is complete GDebi will report the installation is finished and you can then close the progress window and then close the GDebi window.</p><p>That&#8217;s it. And, believe it or not, the process is pretty much the same on the Fedora distribution as well.</p><p><strong>Final thoughts</strong></p><p>I bet you never thought installation applications in Linux was this easy. Well, Linux has come a long, long way since the early days when the command line was a requirement. Now, it seems, the command line is only an option. Although I can&#8217;t imagine myself using Linux without the command line (it&#8217;s how I was taught after all), it is completely possible to do so.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/07/14/installing-applications-in-linux-with-a-double-click/feed/</wfw:commentRss> <slash:comments>4</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> </channel> </rss>
