<?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; urpmi</title> <atom:link href="http://www.ghacks.net/tag/urpmi/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>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>
