LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-28-2003, 12:10 AM   #1
MRK
Member
 
Registered: Jan 2002
Posts: 60

Rep: Reputation: 15
Extracting files from an rpm or srpm


Hello. I have an rpm here that i need a file from. It contains a file called functions that i need from it. I have both the src.rpm and the rpm. Thanks!!

-Matt
 
Old 11-28-2003, 12:15 AM   #2
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
install the .src.rpm and search for your file somewhere in /usr/src/REDHAT or something like that.
 
Old 11-28-2003, 12:24 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
If you have the rpm tools installed, then rpm2cpio <file.rpm> will get you the file.cpio archive. Else use a tool like "rpmunpack" (see Freshmeat) which will also give you the cpio archive. Then gunzip if it's a gzipped cpio, else "(z)cat file.cpio(.gz) | cpio -idm --no-absolute-filenames" should give the contents.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for RPM/SRPM stefaandk Red Hat 1 06-28-2005 09:36 AM
Extracting rpm files vsouza Linux - Software 5 10-08-2004 02:31 PM
what is difference between srpm and rpm?? jinxp7 Linux - Newbie 2 09-06-2004 10:17 PM
Rpm? Srpm? Cvs? oneringsol Linux - Newbie 4 01-05-2004 09:57 PM
difference between srpm and rpm download in rh9 ergo_sum Red Hat 1 12-21-2003 07:53 PM


All times are GMT -5. The time now is 06:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration