LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-20-2010, 01:34 PM   #1
ro0tless
LQ Newbie
 
Registered: Feb 2005
Location: Tokyo Japan
Posts: 5

Rep: Reputation: 0
How can I extract files from a .rpm file?


Hi,
I'm a Gentoo user and newbie to rpm. But I began FC14 also. So please tell me how to extract files from a rpm, anyone?

Thanks in advance!
 
Old 08-20-2010, 01:37 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,322

Rep: Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581
rpm2cpio <package>.rpm | cpio -idmv

Or use the " @unSpawn unPack script ".
..
Attached Files
File Type: txt unPack_rpm.sh.txt (530 Bytes, 12 views)
 
Old 08-20-2010, 01:38 PM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Please, check this thread (especially the script from unSpawn). Basically you need rpm2cpio.

Edit: Beaten by knudfl...

Last edited by colucix; 08-20-2010 at 01:39 PM.
 
Old 08-20-2010, 01:48 PM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Xubuntu
Posts: 5,440

Rep: Reputation: 1896Reputation: 1896Reputation: 1896Reputation: 1896Reputation: 1896Reputation: 1896Reputation: 1896Reputation: 1896Reputation: 1896Reputation: 1896Reputation: 1896
Or, using your GUI, just right-click on the .rpm and choose to open with the archive manager.
 
Old 08-20-2010, 01:53 PM   #5
ro0tless
LQ Newbie
 
Registered: Feb 2005
Location: Tokyo Japan
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you!
I'll try!
 
  


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
How to extract spec file from rpm file nayankk Programming 18 11-12-2015 03:11 PM
how to extract binary or what ever files from rpm package amit_pansuria Programming 5 08-01-2008 07:26 PM
RPM: How do you extract just one file from the package? Thetargos Fedora 4 07-17-2004 04:03 AM
howto extract only single file from rpm demmylls Linux - Software 1 03-14-2004 05:51 AM
How to extract files from an rpm package mayankjohri Linux - Networking 3 06-12-2002 01:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:19 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