<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: How To Extract an RPM Package Without Installing It (rpm extract command)</title>
	<atom:link href="http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html</link>
	<description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description>
	<lastBuildDate>Tue, 16 Mar 2010 19:45:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Pete Wilson</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-149996</link>
		<dc:creator>Pete Wilson</dc:creator>
		<pubDate>Mon, 10 Aug 2009 07:34:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-149996</guid>
		<description>Fantastic! The command line as you gave it worked perfectly: 100% correct, unlike the usual &lt;b&gt;&lt;i&gt;almost&lt;/i&gt;&lt;/b&gt;-correct posting that I have to debug. You saved me hours of work. Thank you!</description>
		<content:encoded><![CDATA[<p>Fantastic! The command line as you gave it worked perfectly: 100% correct, unlike the usual <b><i>almost</i></b>-correct posting that I have to debug. You saved me hours of work. Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zoid</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-149650</link>
		<dc:creator>Zoid</dc:creator>
		<pubDate>Thu, 23 Jul 2009 10:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-149650</guid>
		<description>Hey, this worked great.  I kept getting segmentation fault with plain old rpm and all I really needed from the rpm was some source files in a direction. :-)</description>
		<content:encoded><![CDATA[<p>Hey, this worked great.  I kept getting segmentation fault with plain old rpm and all I really needed from the rpm was some source files in a direction. :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chetan</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-148580</link>
		<dc:creator>chetan</dc:creator>
		<pubDate>Sat, 16 May 2009 16:21:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-148580</guid>
		<description>cool nice post</description>
		<content:encoded><![CDATA[<p>cool nice post</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amit</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-148027</link>
		<dc:creator>amit</dc:creator>
		<pubDate>Tue, 07 Apr 2009 05:36:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-148027</guid>
		<description>Thanks,
its very helpful :)</description>
		<content:encoded><![CDATA[<p>Thanks,<br />
its very helpful :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Balakumar</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-147790</link>
		<dc:creator>Balakumar</dc:creator>
		<pubDate>Mon, 23 Mar 2009 06:23:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-147790</guid>
		<description>Thanks Vivek,
It is very Useful</description>
		<content:encoded><![CDATA[<p>Thanks Vivek,<br />
It is very Useful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcio Carneiro</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-147479</link>
		<dc:creator>Marcio Carneiro</dc:creator>
		<pubDate>Fri, 27 Feb 2009 22:33:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-147479</guid>
		<description>So, now I have the rpm opened and with all dirs.
Can I just mv to / and have program installed and running?
Yes, I know, if this works the rpm database is not updated.
But this works?</description>
		<content:encoded><![CDATA[<p>So, now I have the rpm opened and with all dirs.<br />
Can I just mv to / and have program installed and running?<br />
Yes, I know, if this works the rpm database is not updated.<br />
But this works?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanjay</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-146997</link>
		<dc:creator>Sanjay</dc:creator>
		<pubDate>Sat, 31 Jan 2009 01:42:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-146997</guid>
		<description>Its really very fantastic search i ever made.</description>
		<content:encoded><![CDATA[<p>Its really very fantastic search i ever made.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ritobroto Ram</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-146411</link>
		<dc:creator>Ritobroto Ram</dc:creator>
		<pubDate>Wed, 24 Dec 2008 04:32:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-146411</guid>
		<description>Just what I needed in the nick of time...

Thank You!!!</description>
		<content:encoded><![CDATA[<p>Just what I needed in the nick of time&#8230;</p>
<p>Thank You!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martijn</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-145096</link>
		<dc:creator>Martijn</dc:creator>
		<pubDate>Wed, 24 Sep 2008 10:04:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-145096</guid>
		<description>Thanks, just what I needed.</description>
		<content:encoded><![CDATA[<p>Thanks, just what I needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samuel Benjamin</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-144738</link>
		<dc:creator>Samuel Benjamin</dc:creator>
		<pubDate>Fri, 22 Aug 2008 12:29:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-144738</guid>
		<description>Excellent article that helped us save a lot of time from having to actually install a 64 bit linux system just to be able to retrieve the rpms for that platform.

I would suggest that the author remove the first two lines of the incomplete example which throws the user off until they realize that the cpio part has to be run together for actually extract the files.

No need to display :
    rpm2cpio myrpmfile.rpm
    rpm2cpio - &lt; myrpmfile.rpm

(the above command dumps a continuous stream of unreadable characters to the screen)

Just need to know :
    rpm2cpio myrpmfile.rpm &#124; cpio -idmv

Thanks for sharing this with the linux community.

- Samuel Benjamin, NC.</description>
		<content:encoded><![CDATA[<p>Excellent article that helped us save a lot of time from having to actually install a 64 bit linux system just to be able to retrieve the rpms for that platform.</p>
<p>I would suggest that the author remove the first two lines of the incomplete example which throws the user off until they realize that the cpio part has to be run together for actually extract the files.</p>
<p>No need to display :<br />
    rpm2cpio myrpmfile.rpm<br />
    rpm2cpio &#8211; &lt; myrpmfile.rpm</p>
<p>(the above command dumps a continuous stream of unreadable characters to the screen)</p>
<p>Just need to know :<br />
    rpm2cpio myrpmfile.rpm | cpio -idmv</p>
<p>Thanks for sharing this with the linux community.</p>
<p>- Samuel Benjamin, NC.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vivek</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-144643</link>
		<dc:creator>vivek</dc:creator>
		<pubDate>Wed, 13 Aug 2008 10:03:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-144643</guid>
		<description>@Matthew,

To display scripts you need to use rpm command as follows, this faq is about extracting file from rpm. In short type:
&lt;code&gt;rpm -pq --scripts file.rpm
rpm -pq --scripts rsnapshot-1.3.0-1.noarch.rpm&lt;/code&gt;
Here is sample output from my rpm:
&lt;pre lang=&quot;bash&quot;&gt;postinstall scriptlet (using /bin/sh):
#
# upgrade rsnapshot config file
#
RSNAPSHOT_CONFIG_VERSION=`/usr/bin/rsnapshot check-config-version`
if test $? != 0; then
        echo &quot;Error upgrading /etc/rsnapshot.conf&quot;
fi

if test &quot;$RSNAPSHOT_CONFIG_VERSION&quot; = &quot;1.2&quot;; then
        # already latest version
        exit 0
fi

if test &quot;$RSNAPSHOT_CONFIG_VERSION&quot; = &quot;unknown&quot;; then
        /usr/bin/rsnapshot upgrade-config-file
        RETVAL=$?
        exit $RETVAL
fi
&lt;/pre&gt;
HTH</description>
		<content:encoded><![CDATA[<p>@Matthew,</p>
<p>To display scripts you need to use rpm command as follows, this faq is about extracting file from rpm. In short type:<br />
<code>rpm -pq --scripts file.rpm<br />
rpm -pq --scripts rsnapshot-1.3.0-1.noarch.rpm</code><br />
Here is sample output from my rpm:</p>
<pre lang="bash">postinstall scriptlet (using /bin/sh):
#
# upgrade rsnapshot config file
#
RSNAPSHOT_CONFIG_VERSION=`/usr/bin/rsnapshot check-config-version`
if test $? != 0; then
        echo "Error upgrading /etc/rsnapshot.conf"
fi

if test "$RSNAPSHOT_CONFIG_VERSION" = "1.2"; then
        # already latest version
        exit 0
fi

if test "$RSNAPSHOT_CONFIG_VERSION" = "unknown"; then
        /usr/bin/rsnapshot upgrade-config-file
        RETVAL=$?
        exit $RETVAL
fi
</pre>
<p>HTH</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-144640</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Wed, 13 Aug 2008 02:30:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-144640</guid>
		<description>This is very good, however, I don&#039;t think I see the installation script from inside the RPM. how do I get that? If I&#039;m missing something, please let me know. Thank you!</description>
		<content:encoded><![CDATA[<p>This is very good, however, I don&#8217;t think I see the installation script from inside the RPM. how do I get that? If I&#8217;m missing something, please let me know. Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: langda</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-144441</link>
		<dc:creator>langda</dc:creator>
		<pubDate>Tue, 22 Jul 2008 09:02:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-144441</guid>
		<description>thanks a lot..</description>
		<content:encoded><![CDATA[<p>thanks a lot..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ram</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-144367</link>
		<dc:creator>ram</dc:creator>
		<pubDate>Tue, 15 Jul 2008 20:12:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-144367</guid>
		<description>Saved me a hole lot of time.

Thank you.</description>
		<content:encoded><![CDATA[<p>Saved me a hole lot of time.</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-144187</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Fri, 27 Jun 2008 03:07:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-144187</guid>
		<description>I just found this page and it is great.  One thing to note is that opensuse compresses the cpio part with lzma to decrease size so you have to do something like the following instead.

rpm2cpio file.rpm &#124; lzma -d &#124; cpio -idmv

This will extract the files for you.</description>
		<content:encoded><![CDATA[<p>I just found this page and it is great.  One thing to note is that opensuse compresses the cpio part with lzma to decrease size so you have to do something like the following instead.</p>
<p>rpm2cpio file.rpm | lzma -d | cpio -idmv</p>
<p>This will extract the files for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kulbir Saini</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-143882</link>
		<dc:creator>Kulbir Saini</dc:creator>
		<pubDate>Sun, 25 May 2008 15:06:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-143882</guid>
		<description>thanks a lot :)</description>
		<content:encoded><![CDATA[<p>thanks a lot :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-142711</link>
		<dc:creator>Jared</dc:creator>
		<pubDate>Wed, 30 Jan 2008 17:12:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-142711</guid>
		<description>I love it when I search Google and find a good answer right away.

Thank you so much.</description>
		<content:encoded><![CDATA[<p>I love it when I search Google and find a good answer right away.</p>
<p>Thank you so much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-142710</link>
		<dc:creator>Jared</dc:creator>
		<pubDate>Wed, 30 Jan 2008 17:11:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-142710</guid>
		<description>thanks...worked first time</description>
		<content:encoded><![CDATA[<p>thanks&#8230;worked first time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nixcraft</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-40563</link>
		<dc:creator>nixcraft</dc:creator>
		<pubDate>Wed, 13 Dec 2006 14:40:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-40563</guid>
		<description>Thanks for pointing out alien package to convert rpm to tgz.</description>
		<content:encoded><![CDATA[<p>Thanks for pointing out alien package to convert rpm to tgz.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-40469</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Wed, 13 Dec 2006 10:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html#comment-40469</guid>
		<description>You can also use alien package to convert rpm to tgz...</description>
		<content:encoded><![CDATA[<p>You can also use alien package to convert rpm to tgz&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.203 seconds -->
<!-- Cached page served by WP-Cache -->
