<?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>x83.net &#187; cpio</title>
	<atom:link href="http://www.x83.net/tag/cpio/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.x83.net</link>
	<description></description>
	<lastBuildDate>Sat, 24 Jul 2010 09:50:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>cpio and rpm2cpio howto</title>
		<link>http://www.x83.net/cpio-and-rpm2cpio-howto/</link>
		<comments>http://www.x83.net/cpio-and-rpm2cpio-howto/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 04:16:03 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[cpio]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[rpm2cpio]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=255</guid>
		<description><![CDATA[ To extract a cpio file:
cpio -iv < cpio_file
To list the contents of a cpio file:
cpio -itv < cpio_file
To create a cpio file with all files in the current directory:
ls &#124; cpio -o > cpio_file
To extract all files from an RPM:
rpm2cpio RPM_file &#124; cpio -idv
To extract individual file(s) from an RPM:
rpm2cpio RPM_file &#124; cpio -id [...]]]></description>
			<content:encoded><![CDATA[<p> To extract a cpio file:</p>
<blockquote><p>cpio -iv < cpio_file</p></blockquote>
<p>To list the contents of a cpio file:</p>
<blockquote><p>cpio -itv < cpio_file</p></blockquote>
<p>To create a cpio file with all files in the current directory:</p>
<blockquote><p>ls | cpio -o > cpio_file</p></blockquote>
<p>To extract all files from an RPM:</p>
<blockquote><p>rpm2cpio RPM_file | cpio -idv</p></blockquote>
<p>To extract individual file(s) from an RPM:</p>
<blockquote><p>rpm2cpio RPM_file | cpio -id individual_file(s)</p></blockquote>
<p>e.g. Extracting libcrypto.so.0.9.7a and libssl.so.0.9.7a from openssl-0.9.7a-2.i386.rpm:</p>
<blockquote><p>rpm2cpio openssl-0.9.7a-2.i386.rpm | cpio -it egrep &#8220;libcrypto.so.0.9.7a|libssl.so.0.9.7a&#8221;</p>
<p>-rwxr-xr-x   1 root     root       992092 Feb 27 12:10 ./lib/libcrypto.so.0.9.7a<br />
-rwxr-xr-x   1 root     root       216004 Feb 27 12:10 ./lib/libssl.so.0.9.7a
</p></blockquote>
<blockquote><p>rpm2cpio openssl-0.9.7a-2.i386.rpm | cpio -idv ./lib/libssl.so.0.9.7a ./lib/libcrypto.so.0.9.7a</p></blockquote>
<p>This will extract the two files from the RPM into a ./lib subdirectory.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/cpio-and-rpm2cpio-howto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple gcc versions</title>
		<link>http://www.x83.net/multiple-gcc-versions/</link>
		<comments>http://www.x83.net/multiple-gcc-versions/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 04:12:54 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[cpio]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[multiple]]></category>
		<category><![CDATA[rpm2cpio]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=253</guid>
		<description><![CDATA[Lets say you have this package from FC11:

[root@localhost ~]# rpm -q gcc
gcc-4.4.0-4.i586
But you have an source code that needs gcc-4.3 to compile or something lower.
So download lets say this: gcc-4.3.2-7.i386.rpm then:
mkdir newgcc &#038;&#038; cd newgcc
download http://pathtogcc/gcc-4.3.2-7.i386.rpm
rpm2cpio gcc-4.3.2-7.i386.rpm &#124; cpio -idv

Now you should have in newgcc/usr/bin/gcc.
Or download the gcc package you need from ftp://ftp.gnu.org and compile [...]]]></description>
			<content:encoded><![CDATA[<p>Lets say you have this package from FC11:</p>
<blockquote><p>
[root@localhost ~]# rpm -q gcc<br />
gcc-4.4.0-4.i586</p></blockquote>
<p>But you have an source code that needs gcc-4.3 to compile or something lower.</p>
<p>So download lets say this: gcc-4.3.2-7.i386.rpm then:</p>
<blockquote><p>mkdir newgcc &#038;&#038; cd newgcc<br />
download http://pathtogcc/gcc-4.3.2-7.i386.rpm<br />
rpm2cpio gcc-4.3.2-7.i386.rpm | cpio -idv
</p></blockquote>
<p>Now you should have in <em>newgcc/usr/bin/gcc</em>.</p>
<p>Or download the gcc package you need from ftp://ftp.gnu.org and compile it with &#8211;prefix=$HOME/newgcc</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/multiple-gcc-versions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
