LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-31-2006, 01:50 AM   #1
Basavaraj
LQ Newbie
 
Registered: Dec 2005
Posts: 8

Rep: Reputation: 0
RPM commands!!!!


Hi,

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
Basavaraj
 
Old 05-31-2006, 02:32 AM   #2
ethics
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
Code:
rpm -e
?
 
Old 05-31-2006, 03:35 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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 fame-0.9.0-5.pm.1.i586.rpm | cpio -ivd
./usr/bin/fame
./usr/share/doc/packages/fame
./usr/share/doc/packages/fame/AUTHORS
./usr/share/doc/packages/fame/BUGS
./usr/share/doc/packages/fame/CHANGES
./usr/share/doc/packages/fame/COPYING
./usr/share/doc/packages/fame/README
./usr/share/doc/packages/fame/TODO
./usr/share/man/man1/fame.1.gz
164 blocks
 
Old 05-31-2006, 06:17 AM   #4
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

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


Reply



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

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

All times are GMT -5. The time now is 10:58 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
Open Source Consulting | Domain Registration