<?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>Tue, 31 Jan 2012 13:53:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Yum and RPM Tricks</title>
		<link>http://www.x83.net/yum-and-rpm-tricks/</link>
		<comments>http://www.x83.net/yum-and-rpm-tricks/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 20:06:48 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[cpio]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[rpm2cpio]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=701</guid>
		<description><![CDATA[This applies to Centos 5.6 but most likely it works on any rpm based distro. 1. It happened many times to mess the permissions of a file and services not to work properly. In order to get fixed I run : rpm -qf /path/to/file rpm -ql Lists all files from a package. This should show [...]]]></description>
			<content:encoded><![CDATA[<p>This applies to Centos 5.6 but most likely it works on any rpm based distro.</p>
<p>1. It happened many times to mess the permissions of a file and services not to work properly. In order to get fixed I run :</p>
<p><code>rpm -qf /path/to/file</code></p>
<p><code>rpm -ql
<package)name></code>  Lists all files from a package.</p>
<p>This should show the package that contains the modified file. Then I run :</p>
<p><code>rpm --setperms
<packagename></code></p>
<p>Also this command should show a list of modified files within a package:</p>
<p><code>rpm -V
<packagename></code></p>
<p>2. To view the Changelog:</p>
<p><code>rpm -q --changelog
<packagename> | less</code></p>
<p>3. View package based on repo:</p>
<p><code>rpm -qa release="*rf*"</code></p>
<p>4. Extract just one File:</p>
<p><code>rpm2cpio logrotate-1.0-1.i386.rpm |cpio -ivd etc/logrotate.conf</code></p>
<p>5. Query Package Install Order and Dates</p>
<p><code>rpm -qa --last >~/RPMS_by_Install_Date</code></p>
<p>6. Query Available Packages from a Repo</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/yum-and-rpm-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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) [...]]]></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 [...]]]></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>

