[NBLUG/talk] Extracting a file from a rpm

Eric Eisenhart eric at nblug.org
Thu Mar 31 07:48:54 PST 2005


On Thu, Mar 31, 2005 at 07:17:47AM -0800, Todd Cary wrote:
> I have xorg-x11-deprecated-libs-6.8.1-12.i386.rpm on my system and I 
> need libXp.so.6.  What is the syntax to get this file from the rpm?

Well, usually it's best to install the entire RPM with something like
"rpm -ihv" or "rpm -Uhv".

But assuming that you really need to extract just one single file from an
RPM, try running this in /tmp (or someplace else where a bunch of
directories being created is harmless):
rpm2cpio xorg-x11-deprecated-libs-6.8.1-12.i386.rpm | cpio -idv *libXp.so*

-- 
Eric Eisenhart
NBLUG Co-Founder, Scribe and InstallFest Coordinator
The North Bay Linux Users Group -- http://nblug.org/
eric at nblug.org, IRC: Freiheit at fn AIM: falschfreiheit



More information about the talk mailing list