Archives

June 2004 (2)
May 2004 (3)
April 2004 (7)
March 2004 (12)
February 2004 (12)
January 2004 (22)
December 2003 (19)
November 2003 (16)
October 2003 (26)
September 2003 (18)
August 2003 (38)
July 2003 (80)
June 2003 (13)
May 2003 (24)
April 2003 (76)
March 2003 (75)
February 2003 (51)
January 2003 (73)

Category

Family (5)
FYI (18)
Games (2)
Geek (90)
Geographic (3)
Hacks (13)
Home (15)
Humor (57)
Ideas (20)
Ideaspace (15)
Local (15)
Metadata (10)
Microsoft (2)
MovableType (5)
Nitwits (66)
PKI (2)
Politics (22)
Quotes (3)
RDF (15)
RSS (4)
Security (3)
Semantic Web (13)
Site Info (13)
Social Networks (1)
Spam (9)
Sysadmin (1)
Tips (2)
Tivo (2)
TMFTOTHD (1)
To Do (1)
Unlisted (1)
Web (3)
Windows (1)

Local

« MetroBlogs »
DC metroblogs
beltway bloggers

Links


Assorted bits

Blogroll Me!
GeoURL
Listed on BlogShares




January 16, 2004

Extracting files from an RPM archive

Should anyone else need it, the command to extract files out of an RPM file is: rpm2cpio RPM_file | cpio -idv

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:

cd /tmp
mkdir oldmodutils; cd oldmodutils
wget ftp://194.199.20.114/linux/redhat/9/en/os/i386/RedHat/RPMS/modutils-2.4.22-8.i386.rpm
rpm2cpio modutils-2.4.22-8.i386.rpm | cpio -idv
ls -r
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 cp /tmp/oldmodutils/sbin/modprobe /sbin/modprobe.old took care of copying the needed program from the old version for the new kernel's tools.

Hope this helps someone.

Geek
Perma  | 10:20 AM  | xml

Navigation

Recent Entries

N'yuck, nyuck, woowoowoo!
To hell with propriety
Break free from Radio
Foghorn had a lot to say about life...
IE DNS problem?
America and Europe: Vive la différence?
Server changes afoot
Diet behavior mod
Googling for sensitive info
Outlook 2003 and IMAP, a marriage made in Hell

User comments
Trackbacks

Contact

send me an e-mail E-mail
chat with me using MS messenger MSN Messenger
chat with me via AIM America Online
chat with me on ICQ ICQ
chat with me on Yahoo! Yahoo
Add my vCard to your electronic addressbook vCard
Friend of a Friend FoaF

Syndication

XML  RDF  CDF

Comments

XFML

Extra Stuff

foaf
vCard
pgp info
Linked In
Powered by
Movable Type 2.64