Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-31-2006, 02:50 AM   #1
LQ Newbie
Registered: Dec 2005
Posts: 8

Rep: Reputation: 0
RPM commands!!!!


I would like to know is their any command to get a file(opening i.e vi) from any .src.rpm package without installing it.

Thanks & Regards
Old 05-31-2006, 03:32 AM   #2
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Not quite clear on what you want, you want to use a source .RPM to run something without installing it? I would imagine you can't, the source needs to be compiled before it can run...?

Or you want to extract the source from the .RPM without installing the .RPM? can you not just install it, get the source and then uninstall the .RPM with
rpm -e
Old 05-31-2006, 04:35 AM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
You can explore an RPM package using Midnight Commander (mc).

There is also a command called unrar that can unpack the contents of an RPM. You will want to put it in a directory first.

You can also use the rpm2cpio program:
~/lxi> rpm2cpio | cpio -ivd
164 blocks
Old 05-31-2006, 07:17 AM   #4
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
Maybe you want:
rpm -qpi
rpm -qpl
To get some information on the files in the .rpm


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
rpm commands hang rhxk Fedora 1 04-08-2006 04:09 AM
Help with RPM Commands - See a whole list pxumsgdxpcvjm Linux - Newbie 3 03-05-2006 04:04 AM
YUM/RPM commands giving errors MontyPY Linux - Software 1 03-04-2005 09:10 AM
RPM - commands smokarran Linux - Newbie 4 08-11-2004 02:52 AM
Rpm commands? RichardSimmons Linux - Newbie 2 03-02-2004 05:32 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:36 PM.

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