<?xml version="1.0" encoding="iso-8859-1"?> 
<rdf:RDF
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
	xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
	xmlns:dc="http://purl.org/dc/elements/1.1/" 
	xmlns:dcterms="http://purl.org/dc/terms/" 
	xmlns:admin="http://webns.net/mvcb/"
	xmlns:thr="http://purl.org/rss/1.0/modules/threading/"
	xmlns:pb="http://www.ideaspace.net/users/wkearney/schema/postback/" 
	xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" 
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:mt="http://movabletype.org/"
	xmlns:foaf="http://xmlns.com/foaf/0.1/" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:html="http://www.w3.org/TR/REC-html40/"
	xmlns="http://purl.org/rss/1.0/"
> 

<rdf:Description rdf:about="http://www.ideaspace.net/users/wkearney/archives/entries/000568.html"> 
	<title>Extracting files from an RPM archive</title>
	<link>http://www.ideaspace.net/users/wkearney/archives/entries/000568.html</link>
	<description>Should anyone else need it, the command to extract files out of an RPM file is: rpm2cpio RPM_file | cpio...</description> 

	<dc:creator>wkearney</dc:creator> 
	<dc:date>2004-01-16T10:20:30-05:00</dc:date> 
	<dc:identifier>http://www.ideaspace.net/users/wkearney/archives/entries/000568.html</dc:identifier>
	<dc:language>en-us</dc:language>

	 
	<dc:subject>Geek</dc:subject>

	

	

	
	
	
	<dcterms:abstract>Should anyone else need it, the command to extract files out of an RPM file is: rpm2cpio RPM_file | cpio...</dcterms:abstract> 
	<dcterms:created>2004-01-16T10:20:30-05:00</dcterms:created> 
	<dcterms:isPartOf rdf:resource="http://www.ideaspace.net/users/wkearney/" /> 

	<mt:body><![CDATA[<p>Should anyone else need it, the command to extract files out of an RPM file is: <b>rpm2cpio RPM_file | cpio -idv</b></p>

<p>This will dump the contents into subdirectories within the current directory.  That is, you might want to make sure you're in a place that's good for holding these files (as in, not in the / root).  I've done it with for stuff like this:<blockquote>cd /tmp<br />
mkdir oldmodutils; cd oldmodutils<br />
wget ftp://194.199.20.114/linux/redhat/9/en/os/i386/RedHat/RPMS/modutils-2.4.22-8.i386.rpm<br />
rpm2cpio modutils-2.4.22-8.i386.rpm | cpio -idv<br />
ls -r</blockquote>This resulted in downloading the RH9 version of modutils and then extracting it into subdirectories  within /tmp/oldmodutils.  I could them snag a copy of modprobe for use with the 2.6 kernel generate-modprobe-conf tool.  A quick <b>cp /tmp/oldmodutils/sbin/modprobe /sbin/modprobe.old</b> took care of copying the needed program from the old version for the new kernel's tools.</p>

<p>Hope this helps someone.</p>]]></mt:body>
	<mt:excerpt>Should anyone else need it, the command to extract files out of an RPM file is: rpm2cpio RPM_file | cpio...</mt:excerpt> 
	<mt:more></mt:more>
	<mt:keywords></mt:keywords> 
	<mt:entryID>568</mt:entryID>

	<mt:entryPrev>567</mt:entryPrev>
	<mt:entryNext>569</mt:entryNext>

	<html:link rel="prev" type="application/xml" href="http://www.ideaspace.net/users/wkearney/archives/entries/000567.html.xml" title="Sacrificing goats to the kernel gods" />
	<html:link rel="next" type="application/xml" href="http://www.ideaspace.net/users/wkearney/archives/entries/000569.html.xml" title="Semantic smarts" />
	
	<mt:author>wkearney</mt:author> 
	<mt:authorNickname>Bill Kearney</mt:authorNickname> 
	<mt:authorEmail>wkearney@ideaspace.net</mt:authorEmail>
	<mt:authorURL rdf:resource="http://www.ideaspace.net/users/wkearney" /> 
	
	<foaf:name>wkearney</foaf:name> 
	<foaf:mbox rdf:resource="mailto:wkearney@ideaspace.net" /> 
	<foaf:nick>Bill Kearney</foaf:nick> 
	<foaf:homepage rdf:resource="http://www.ideaspace.net/users/wkearney" />
	
	<rdfs:seeAlso rdf:resource="http://www.ideaspace.net/users/wkearney/xml/index.rdf" />
	<admin:generatorAgent rdf:resource="http://www.movabletype.org/?v=2.64" /> 
</rdf:Description>
</rdf:RDF>