<?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; rpm</title>
	<atom:link href="http://www.x83.net/tag/rpm/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>Howto list installed packages sorted by size</title>
		<link>http://www.x83.net/howto-list-installed-packages-sorted-by-size/</link>
		<comments>http://www.x83.net/howto-list-installed-packages-sorted-by-size/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 18:57:08 +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[Tips & Tricks]]></category>
		<category><![CDATA[head]]></category>
		<category><![CDATA[name]]></category>
		<category><![CDATA[querytags]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[size]]></category>
		<category><![CDATA[sort]]></category>
		<category><![CDATA[vendor]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=388</guid>
		<description><![CDATA[rpm -qa &#8211;queryformat &#8216;%{SIZE} %{NAME} %{VENDOR}\n&#8217;  &#124; sort -n -r &#124; head -10
Check :rpm &#8211;querytags  for all the tags
]]></description>
			<content:encoded><![CDATA[<blockquote><p>rpm -qa &#8211;queryformat &#8216;%{SIZE} %{NAME} %{VENDOR}\n&#8217;  | sort -n -r | head -10</p></blockquote>
<p>Check :rpm &#8211;querytags  for all the tags</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/howto-list-installed-packages-sorted-by-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RPM relocatable packages</title>
		<link>http://www.x83.net/rpm-relocatable-packages/</link>
		<comments>http://www.x83.net/rpm-relocatable-packages/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 04:28:33 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[packages]]></category>
		<category><![CDATA[relocatable]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=257</guid>
		<description><![CDATA[RPM has an option (&#8211;prefix) that allows users to install rpms in other directories than the default ones.
Packages that allow to be installed in other directories are called : relocatable
[root@localhost gcc]# rpm -qpi libxslt-1.1.24-4.fc11.i586.rpm  &#124; grep Relocations
Name        : libxslt         [...]]]></description>
			<content:encoded><![CDATA[<p>RPM has an option (&#8211;prefix) that allows users to install rpms in other directories than the default ones.<br />
Packages that allow to be installed in other directories are called : <em>relocatable</em></p>
<blockquote><p>[root@localhost gcc]# rpm -qpi libxslt-1.1.24-4.fc11.i586.rpm  | grep Relocations<br />
Name        : libxslt                      Relocations: /usr<br />
[root@localhost gcc]# rpm -qi libxslt  | grep Relo<br />
Name        : libxslt                      Relocations: /usr
</p></blockquote>
<p>So basically you can install this package in other directory.</p>
<blockquote><p>[root@localhost gcc]# rpm -ihv libxslt-1.1.24-4.fc11.i586.rpm &#8211;prefix $PWD &#8211;force<br />
Preparing&#8230;                ########################################### [100%]<br />
   1:libxslt                ########################################### [100%]<br />
[root@localhost gcc]# ls<br />
bin  lib  libxslt-1.1.24-4.fc11.i586.rpm  share
</p></blockquote>
<p>For example gcc is not relocatable and installing it in an different directory is not allowd:</p>
<blockquote><p>[root@localhost gcc]# rpm -qi gcc | grep Relo<br />
Name        : gcc                          Relocations: (not relocatable)<br />
[root@localhost gcc]# rpm -Uhv gcc-4.1.2-33.i386.rpm &#8211;prefix=$PWD<br />
error: package gcc is not relocatable
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/rpm-relocatable-packages/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) 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>
	</channel>
</rss>
