<?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; rpm</title> <atom:link href="http://www.ghacks.net/tag/rpm/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>Install LibreOffice on Fedora and Ubuntu</title><link>http://www.ghacks.net/2010/09/30/install-libreoffice-on-fedora-and-ubuntu/</link> <comments>http://www.ghacks.net/2010/09/30/install-libreoffice-on-fedora-and-ubuntu/#comments</comments> <pubDate>Thu, 30 Sep 2010 11:37:01 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[office suite]]></category> <category><![CDATA[openoffice]]></category> <category><![CDATA[rpm]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=35397</guid> <description><![CDATA[You&#8217;ve probably already heard the news. OpenOffice has officially forked into LibreOffice. This fork is thanks to the way Oracle has botched nearly everything it has touched and the OpenOffice community wants to protect the flagship product. So now, there is a fully open office suite that, in my opinion, will actually be able to [...]]]></description> <content:encoded><![CDATA[<p>You&#8217;ve probably already heard the news. OpenOffice has officially forked into LibreOffice. This fork is thanks to the way Oracle has botched nearly everything it has touched and the OpenOffice community wants to protect the flagship product. So now, there is a fully open office suite that, in my opinion, will actually be able to rise to newer and higher heights than it ever could under the firm thumb of Oracle and Sun.</p><p>Now, if you already have OpenOffice you can still install LibreOffice. And if you are using Windows you simply have to download the installation file from the <a
title="LibreOffice" href="http://www.libreoffice.org/download/" target="_blank">LibreOffice download page</a>. If you are using Fedora Linux you can download the GNU Linux file which, once unpacked, will contain all the rpm files you need. If you want to install in Ubuntu, you have to first create debs from the rpms. I am going to show you how to do just that in this article (along with showing you how to install LibreOffice in Fedora).</p><p><span
id="more-35397"></span><strong>Installing in Fedora</strong></p><p>As stated earlier, you need to download the package from the download site. When you do you will have a file <strong>~/Downloads/LO_3.3.0-beta1_Linux_x86_install-rpm_en-US.tar.gz. </strong>NOTE: File name may vary depending upon location and when you download. Once you have that file downloaded open up a terminal window and follow these steps:</p><ol><li>Change into the <strong>~/Downloads </strong>directory.</li><li>Unpack the file with the command <code>tar xvzf LO_3.3.0-beta1_Linux_x86_install-rpm_en-US.tar.gz</code> which will create a new directory <strong>~/Downloads/en-US</strong>. NOTE: The newly created directory will be based on your location and language.</li><li>Change into the newly created directory.</li><li>Change into the RPMS subfolder.</li><li>Su to the root user and issue the command <code>rpm -ivh *rpm</code> to install the main packages.</li><li>Now change into the sub-directory <strong>desktop-integration.</strong></li><li>Issue the command <code>rpm -ivh *rpm</code> to install the LibreOffice menu entries.</li></ol><p>That&#8217;s it. LibreOffice is now installed on your Fedora machine.</p><p><strong>Ubuntu</strong></p><p>In order to install on Ubuntu you have to create .deb files out of the .rpm files included with the downloaded packages. To do this you first have to install the application Alien. To install Alien do the following:</p><ol><li>Open up a terminal.</li><li>Issue the command <code>sudo apt-get install alien</code>.</li><li>Type your sudo password and hit Enter.</li><li>Accept any dependencies.</li></ol><p>Once Alien is installed, change into the directory containing the LibreOffice rpm files and issue the command:</p><p><code>alien -k *rpm</code></p><p>When this finishes (it will take a while), issue the command:</p><p><code>sudo dpkg -i *deb</code></p><p>The above command will install the newly created .deb packages. Now you need to do the same thing with the desktop-integration files. So change into that sub-folder and issue the command:</p><p><code>alien -k *rpm</code></p><p>followed by the command:</p><p><code>sudo dpkg -i *deb</code></p><p>Now you will see LibreOffice in your <strong>Applications &gt; Office </strong> menu. You can open it up and use it exactly as you would have used OpenOffice.</p><p><strong>Final thoughts</strong></p><p>One thing to note is that LibreOffice, as of this writing, is still in beta. But it is still very reliable and will improve at a far greater rate than OpenOffice ever did. I&#8217;m actually happy to see this happen. I believe that Oracle was going to bury OpenOffice and let it gather dust.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/09/30/install-libreoffice-on-fedora-and-ubuntu/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> <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>Installing software in OpenSuSE with YaST</title><link>http://www.ghacks.net/2010/05/28/installing-software-in-opensuse-with-yast/</link> <comments>http://www.ghacks.net/2010/05/28/installing-software-in-opensuse-with-yast/#comments</comments> <pubDate>Fri, 28 May 2010 11:40: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[add/remove software]]></category> <category><![CDATA[opensuse]]></category> <category><![CDATA[rpm]]></category> <category><![CDATA[SuSE]]></category> <category><![CDATA[YaST]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=25734</guid> <description><![CDATA[Let&#8217;s continue our hayride with OpenSuSE. The last time we visited this operating system we took a look at the stellar YaST tool (see my article &#8220;YaST: Yet Another Setup Tool&#8220;). From within that tool you could easily access the YaST Software Installation tool for OpenSuSE. This tool is about as user-friendly as any of [...]]]></description> <content:encoded><![CDATA[<p>Let&#8217;s continue our hayride with OpenSuSE. The last time we visited this operating system we took a look at the stellar YaST tool (see my article &#8220;<a
title="YaST: Yet Another Setup Tool" href="http://www.ghacks.net/2010/05/27/yast-yet-another-setup-tool/" target="_blank">YaST: Yet Another Setup Tool</a>&#8220;). From within that tool you could easily access the YaST Software Installation tool for OpenSuSE. This tool is about as user-friendly as any of the Linux Add/Remove Software tools and in this article we will examine how it works.</p><p>Although, at first blush, it might seem the YaST Software Installation tool might be more suited for the power user (at least as far as GUIs are concerned), when you finally examine the tool, you will see otherwise. The OpenSuSE Add/Remove Software tool is easy enough for any experience level. So, with that said, let&#8217;s take a look at the YaST Package Manager.</p><p><span
id="more-25734"></span><strong>Starting the tool</strong></p><div
id="attachment_25736" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/05/yast_install_main.png"><img
class="size-medium wp-image-25736 " src="http://www.ghacks.net/wp-content/uploads/2010/05/yast_install_main-500x395.png" alt="" width="300" height="237" /></a><p
class="wp-caption-text">Figure 1</p></div><p>As I said in the intro, there is more than one way to start this tool: From within YaST itself or from within the main menu (<strong>Start &gt; Computer &gt; Install Software</strong>). NOTE: If you&#8217;re looking for the command line tool, we&#8217;ll cover that in another article. When you first start the tool you will have to enter your root password and then the tool will start running through a few checks. Once the tool is up and running, you will be greeted with what should be a fairly familiar window.</p><p>The tab that gets focus, by default, is the Installation Summary tab. This shows you every package you currently have installed on your system. If you click on a package you can get plenty of information about that package.</p><p>But let&#8217;s say you want to install a particular piece of software on your OpenSuSE system. How do you go about doing that? Simple. The first thing you have to do is find the package. Let&#8217;s say you want to install the game Frozen Bubble on your OpenSuSE machine. You could do this two different ways.</p><div
id="attachment_25737" class="wp-caption alignright" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/05/yast_install_frozen_bubble.png"><img
class="size-medium wp-image-25737 " src="http://www.ghacks.net/wp-content/uploads/2010/05/yast_install_frozen_bubble-500x393.png" alt="" width="300" height="236" /></a><p
class="wp-caption-text">Figure 2</p></div><p>1. RPM Groups. If you click on the RPM Groups tab you will see all packages grouped together by category (see Figure 2). To find the software you want to install first find the main group (or category) it would fall under. In the case of Frozen Bubble, we would look in the Games group. In some cases a group will hold sub-groups.</p><p>Once you have found the software you wish to install, mark it for installation and then click the Accept button. Depending upon what you are installing, you might have to accept an EULA or dependencies.</p><p>2. Search. This is simple. Click on the Search tab, enter the package your looking for, mark the results for installation, and click accept. Of course you can narrow your search results by searching for any of the following: Name, keywords, summary, description, RPM provides, RPM requires, or file list.</p><p><strong>Patterns</strong></p><p>The YaST Package Management system also has a handy feature that allows you to view software by Patterns. Patterns are software packages that are grouped together by function: Graphical Desktop Environment,  Desktop Functions, Base Technologies, Server Functions, Proprietary Software, and Development. From these Patterns you can easily select a piece of software (such as KDE 4 or GNOME) and, with a single click select every piece of software necessary to install that pattern.</p><p><strong>Final thoughts</strong></p><p>You have now seen how simple the YaST Package Manager is to use. In my next article I will show you how to manage repositories in this same tool so you can further enhance the YaST Add/Remove Software experience.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/05/28/installing-software-in-opensuse-with-yast/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Luckybackup: Linux backup made easy</title><link>http://www.ghacks.net/2010/04/13/luckybackup-linux-backup-made-easy/</link> <comments>http://www.ghacks.net/2010/04/13/luckybackup-linux-backup-made-easy/#comments</comments> <pubDate>Tue, 13 Apr 2010 11:39:04 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[backup]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[network backup]]></category> <category><![CDATA[remote backup]]></category> <category><![CDATA[rpm]]></category> <category><![CDATA[ubuntu]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=24492</guid> <description><![CDATA[There are a lot of backup tools out there. From the overly simple to the overly complex. Many of those backup tools go unnoticed and unused. Some of them get recognized as the outstanding projects they are. One of those tools is Luckybackup. This tool was awarded Sourceforge&#8217;s best new project of 2009. There is [...]]]></description> <content:encoded><![CDATA[<p>There are a lot of backup tools out there. From the overly simple to the overly complex. Many of those backup tools go unnoticed and unused. Some of them get recognized as the outstanding projects they are. One of those tools is Luckybackup. This tool was awarded Sourceforge&#8217;s best new project of 2009. There is a reason for that. Luckybackup is a simple to use backup tool that can backup both to a local machine and to a remote machine &#8211; with a user-friendly gui and all the features you would expect in a backup tool.</p><p>You might think that Luckybackup is a tool only an end-user could love. Not so. Although Luckybackup is simple to use, open source, and free it&#8217;s a worthy candidate for business backup as well. Oh sure, you&#8217;re not going to image your machines with this backup tool, but you can backup your data. In this article I am going to show you how to install and use Luckybackup.</p><p><span
id="more-24492"></span><strong>Installation</strong></p><p>Installation is simple. If you&#8217;re lucky Luckybackup will be found in your distributions repositories. If that&#8217;s the case, just fire up your package manager tool, search for &#8220;luckybackup&#8221; (No quotes), select Lucky Backup for installation, and click apply. That&#8217;s it. If you&#8217;re not luck, and Lucky Backup isn&#8217;t in your repositories, then you will have to go to the <a
title="Lucky Backup download page" href="http://luckybackup.sourceforge.net/download.html" target="_blank">Lucky Backup download page</a> and download the binary for your distribution. Once you have that file it&#8217;s as simple as either letting your browser auto-detect and let a tool like GDebi install the package, or install from command line like so:</p><p><em>rpm -ivh luckybackup-XXX.rpm </em></p><p>Where XXX is the release number.</p><p><strong>Using Lucky Backup</strong></p><div
id="attachment_24499" class="wp-caption alignleft" style="width: 294px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/04/luckybackup_main.png"><img
class="size-medium wp-image-24499 " src="http://www.ghacks.net/wp-content/uploads/2010/04/luckybackup_main-474x499.png" alt="" width="284" height="299" /></a><p
class="wp-caption-text">Figure 1</p></div><p>I am going to walk you through the steps for creating a remote backup using Lucky Backup. The remote backup I am going to illustrate uses ssh for the network transportation. For simplicities sake I am going to illustrate how you can do a backup with user intervention. To really make this work, you will want to set up password-less secure shell communication. You can see how this is done in my article &#8220;<a
title="Five handy secure shell tips and tricks" href="http://www.ghacks.net/2009/10/17/five-handy-secure-shell-tips-and-tricks/" target="_blank">Five handy secure shell tips and tricks</a>&#8220;.</p><p>Once installed open up a terminal window and issue the command <em>luckybackup</em>. This command will open up the user-friendly gui (see Figure 1) where you add all of the backups you want to create.</p><p>Let&#8217;s walk through the steps of creating an ssh-based backup.</p><p><strong>Step 1: </strong>Click the Add button.</p><p><strong> </strong></p><p><strong></p><div
id="attachment_24500" class="wp-caption alignright" style="width: 288px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/04/luckybackup_backup.png"><img
class="size-medium wp-image-24500 " src="http://www.ghacks.net/wp-content/uploads/2010/04/luckybackup_backup-464x500.png" alt="" width="278" height="300" /></a><p
class="wp-caption-text">Figure 2</p></div><p><span
style="font-weight: normal">Step 2: </span></strong>Fill in the necessary pieces of information in the new window (see Figure 2). This information will include:</p><ul><li>Name: Name to give the backup.</li><li>Type: Full or incremental.</li><li>Source: What you want to backup.</li><li>Destion: Directory on local or remote host to store backup.</li></ul><p>REMOTE TAB:</p><ul><li>User remote host: Check this box.</li><li>Destination: Check this box.</li><li>User: Username on remote machine.</li><li>Host: IP Address of remote machine</li><li>Ssh: Check this box.</li></ul><p><strong>Step 3: </strong>Click Okay to save your settings.</p><p><strong>Step 4: </strong>Click Start to begin the backup process.</p><p>If your backup was setup correct you will immediately be informed such and, in the terminal window where you started Lukcybackup from, you will prompted for the remote users password. Enter the password in that terminal window and hit enter. Your backup will begin.</p><p>As I mentioned earlier, to avoid having to be prompted for your password (this will be necessary for scheduled backup) you will need to set up password-less secure shell.</p><p><strong>Final thoughts</strong></p><p>That was simple. That is exactly how a backup tool should work. Give Lucky Backup a try, you may not find a Linux backup tool as simple to use.</p><p><strong><br
/> </strong></p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/04/13/luckybackup-linux-backup-made-easy/feed/</wfw:commentRss> <slash:comments>18</slash:comments> </item> <item><title>Get To Know Linux: Lesser Known RPM Options</title><link>http://www.ghacks.net/2009/03/19/get-to-know-linux-lesser-known-rpm-options/</link> <comments>http://www.ghacks.net/2009/03/19/get-to-know-linux-lesser-known-rpm-options/#comments</comments> <pubDate>Thu, 19 Mar 2009 16:18:46 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[package management]]></category> <category><![CDATA[rpm]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=11339</guid> <description><![CDATA[Using Linux, in one form or another, then you have dealt with one package manager or another. Be it apt, urpmi, dpkg, or rpm, they all have the same goal: Make package management consistent and easy. Each of those tools even have a front-end (or two) to make the job even easier. But there are [...]]]></description> <content:encoded><![CDATA[<p>Using Linux, in one form or another, then you have dealt with one package manager or another. Be it apt, urpmi, dpkg, or rpm, they all have the same goal: Make package management consistent and easy. Each of those tools even have a front-end (or two) to make the job even easier. But there are times when you simply can&#8217;t beat the ol&#8217; tried and true command line. And when you do have to turn to the command line, it&#8217;s nice to know you have the skills to tackle the task at hand.</p><p>I have touched on this topic before in my article &#8220;<a
title="Installing from command line" href="http://www.ghacks.net/2009/01/16/getting-to-know-linux-installing-from-command-line/" target="_blank">Installing From the Command Line</a>&#8220;. That was just grazing the surface. In this article you will learn a bit more about the rpm command line package management system.</p><p><span
id="more-11339"></span>As you may (or may not know) the structure of the RPM command is:</p><p><em>rpm {ARGUMENTS} [OPTIONS] filename</em></p><p>both ARGUMENTS and OPTIONS will depend upon what you are doing. The possibilities are:</p><ul><li>Install: For installation you lead with the <em>i</em> argument (e.g. <em>-ivh</em>)</li><li>Upgrade: For upgrade you lead with the <em>U</em> argument (e.g. <em>-Uvh</em>)</li><li>Remove: For removal you lead with with the <em>e </em>argument (e.g. <em>-evh</em>)</li><li>Query: For querying if a package is installed lead with the (e.g. <em>-q</em>)</li></ul><p>RPM also has some very important other tools and arguments that I want to focus on. Some of these arguments should only be used as a last resort and some of them could become necessary over time.<strong> </strong></p><p><strong>Special Upgrade or Install Arguments</strong></p><p>There are some lesser known arguments for upgrading or installing worth mentioning. The first of these I want to mention is:</p><p><strong><em>&#8211;oldpackage</em></strong> This argument allows you to replace a newer package with an older package. This can come in handy when a newer version of a package comes with bugs or removes features that you liked.</p><p><em><strong>&#8211;nodeps</strong> </em>This argument tells rpm to not do a dependency check before installing or upgrading a package. Use this wisely and sparingly or you will have packages that will not run. I take advantage of this argument when installing packages that have features (which depend upon packages not installed) that I do not want or need. But before using this I make sure my system meets all other dependencies.</p><p><em><strong>&#8211;force</strong></em> This argument will force an install even if it conflicts with another package (the same package or another package). Using this argument can be dangerous and should be used only if you know for sure it will not break your system.</p><p><em><strong>&#8211;test</strong></em> This will run a test transaction. No packages will actually be installed and all conflicts will be reported.</p><p><strong><em>&#8211;nosignature</em></strong> This will not verify a package or package header signature before installing.</p><p><strong><em>&#8211;excludedocs</em></strong> This will tell rpm to install the package but not the package included (if any) documentation.</p><p><strong>Erasing Options</strong></p><p>Here are some helpful erasing options.</p><p><em><strong>&#8211;nodep</strong></em><strong>s</strong><em><strong> </strong></em>This is the same as the installation version</p><p><strong><em>&#8211;repackage</em></strong> This will repackage the application you are removing. Very handy if you decide you want to re-install the package.</p><p><strong>Updating rpm database<br
/> </strong></p><p>One very important use of rpm is to rebuild the rpm database. I have had the rpm database become corrupt for one reason or another. At that point rpm will have trouble doing anything. When you find rpm not being able to execute tasks, one of the reasons will be a corrupt database. You will most likely see some sort of warning referencing a problem with the database. To fix this issue use the <em>&#8211;rebuilddb</em> option. This is used like so:</p><p><em>rpm &#8211;rebuilddb -v<br
/> </em></p><p>and will take some time to complete.</p><p><strong>Final Thoughts</strong></p><p>And there you have it. A closer look at the rpm package manager with regards to lesser known arguments and options. I hope this helps you get to know the rpm system a little better.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/03/19/get-to-know-linux-lesser-known-rpm-options/feed/</wfw:commentRss> <slash:comments>1</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>
