LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-24-2007, 06:19 PM   #1
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Rep: Reputation: 30
Noobie rpm question


Is there a way I can export only one file from a given RPM?

Thanks.
 
Old 08-24-2007, 07:49 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
In a roundabout way yes, use rpm2cpio and cpio to extract the contents of the rpm package;

rpm2cpio < full name of the rpm package here > something.cpio
cpio -i -d something.cpio

See the manpages fro both commands for the details and additional inforomation: man rpm2cpio
 
Old 08-31-2007, 04:36 PM   #3
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
it takes hours ?
It's running for an hour or so...

Code:
rpm2cpio < /tmp/binutils-2.15.92.0.2-152.i386.rpm > /tmp/binutils.cpio; 
cpio -i -d /tmp/binutils.cpio; # This one takes hours/// :S
 
Old 08-31-2007, 06:34 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608
Try 'cat /tmp/binutils.cpio|cpio -i -d'?
 
Old 08-31-2007, 06:37 PM   #5
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by unSpawn View Post
Try 'cat /tmp/binutils.cpio|cpio -i -d'?


Thanks!...,.

Last edited by itz2000; 08-31-2007 at 07:17 PM.
 
  


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
smart noobie question alaios SUSE / openSUSE 1 10-27-2006 10:03 AM
noobie up2date question zarnold Red Hat 3 09-02-2006 10:10 PM
Networking noobie setup question imag Linux - Networking 2 01-18-2006 03:39 PM
noobie question about rc.d file bob cashman Ubuntu 3 07-15-2005 10:31 AM
noobie bash command question SamerAdra Linux - Newbie 5 10-26-2004 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:50 PM.

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
Open Source Consulting | Domain Registration