<?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>Unix Surgeon &#187; diffrence in upgrade &amp; freshen in rpm installation</title>
	<atom:link href="http://www.unixsurgeon.com/kb/tag/diffrence-in-upgrade-freshen-in-rpm-installation/feed" rel="self" type="application/rss+xml" />
	<link>http://www.unixsurgeon.com/kb</link>
	<description>Linux Hosting Solution, Linux Web Hosting Solution, Learn Linux, How to, Server Management , Web Hosting Solution , Linux Solution , KnowledgeBase , Linux Tutorial</description>
	<lastBuildDate>Mon, 06 Feb 2012 10:42:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To Install,Upgrade &amp; Extract RPM File.</title>
		<link>http://www.unixsurgeon.com/kb/how-to-installupgrade-extract-rpm-file.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-installupgrade-extract-rpm-file.html#comments</comments>
		<pubDate>Tue, 16 Mar 2010 16:11:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[diffrence in upgrade & freshen in rpm installation]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[RPM]]></category>
		<category><![CDATA[rpm packages]]></category>
		<category><![CDATA[Upgrade & Extract RPM]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=30</guid>
		<description><![CDATA[The Installation Task In Detail :-
You can use the rpm –U command or the rpm –i command to install a package. When the rpm command installs a package, it goes through a number of steps:
*Checking the package and the files it wants to install
*Performing preinstallation tasks
*Uncompressing the files and placing them in the proper locations
*Performing [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The Installation Task In Detail :-</strong></p>
<p>You can use the rpm –U command or the rpm –i command to install a package. When the rpm command installs a package, it goes through a number of steps:</p>
<p><span style="color: #ff6600;">*</span>Checking the package and the files it wants to install</p>
<p><span style="color: #ff6600;">*</span>Performing preinstallation tasks</p>
<p><span style="color: #ff6600;">*</span>Uncompressing the files and placing them in the proper locations</p>
<p><span style="color: #ff6600;">*</span>Performing post-processing tasks</p>
<p><span style="color: #ff6600;">*</span>Updating the RPM Database</p>
<p>When checking the package, rpm checks that all the dependencies are installed. Dependencies are packages required by the RPM package you want to install.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>Checking That the Package Is Installed :-</strong></p>
<p>Use the rpm –q command to quickly verify a package has been installed. To verify, you need to use the name of the installed package, not the name of the RPM file. You can also use a partial package name :-</p>
<p># <em></em>rpm –qa httpd</p>
<p>The rpm -q command just asks the RPM database if the package has been installed. There may be other issues with the package that this command won’t show.</p>
<p><strong>Install a rpm package :-</strong></p>
<p># rpm -ivh rpm package name</p>
<p>The -i option for to install</p>
<p>The -h option to the rpm command prints out # signs, also called hash marks (hence the -h). These hash marks provide some confirmation that the rpm command is still running.</p>
<p>The -v option to the rpm command tells the command to print out verbose information as the command runs. Remember, though, that verbose is used in the traditional Unix and Linux meaning, which is normally not all that verbose.</p>
<p><strong>Upgrading packages :- </strong></p>
<p>The rpm –U command works for both installation of new packages and for upgrading. The rpm -U command is a very powerful tool and performs some complex operations with just one command.</p>
<p># rpm -q httpd</p>
<p>httpd-2.0.3-31.el5</p>
<p># rpm -Uvh httpd-2.2.3-31.el5.i386.rpm</p>
<p># rpm -q httpd</p>
<p>httpd-2.2.3-31.el5</p>
<p>Note that the old version of the httpd package is no longer installed. The rpm &#8211;U command removed that package &amp; upgrade it with new version.</p>
<p><strong>Freshening up packages :-</strong></p>
<p>A freshen operation means to install a new version of a package only if you have already installed another version of the package. Thus, a freshen operation is very similar to the upgrade operation except that a freshen requires you to have previously installed the package, while an upgrade can install a package for the first time. The basic syntax for freshening a package is to use the -F option.</p>
<p># rpm -Fvh package_name</p>
<p># rpm -Fvh httpd-2.2.3-31.el5.i386.rpm</p>
<p>You can also use the &#8211;freshen long option in place of -F.</p>
<p>As with upgrading, the options to the rpm command are the same, except for the -F or &#8211;freshen option that indicates the operation. These are the options discussed in the sections on upgrading and installing software.</p>
<p><strong>Extract an RPM Package Without Installing it like tar or zip file :- </strong></p>
<p># rpm2cpio rpmpackagename.rpm<br />
# rpm2cpio rpmpackagename.rpm | cpio -idmv</p>
<p>For more information regarding RPM please read the following knowledgebase :-</p>
<p><strong>http://docs.fedoraproject.org/drafts/rpm-guide-en/</strong></p>
<p>Enjoy Linux&#8230;.!!!!! <img src='http://www.unixsurgeon.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-installupgrade-extract-rpm-file.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

