LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-24-2002, 03:51 PM   #1
Road
Member
 
Registered: Jan 2002
Distribution: Debian Based only but have tried most others.
Posts: 82

Rep: Reputation: 15
RPM Question


Is it possible to install only a single file in a package? I have read all my books on RPM but I cant seem to figure out to only install one single file from a package. I want to know if its even possible?

Thanks,

Road
 
Old 01-24-2002, 04:11 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
I'm bored, so I just went through the entire man page on RPM, although an older version, whatever came with Slackware 8.

It doesn't look like its possible. I also checked to see if you could just dump contents to a different file, then of course you could just copy what you need and rm the temporary directory. That seems like a headache even if it is possible.

The easiest way seems to be installing the RPM, copying what you need, and then un-installing it. Another reason I'm continuing to dislike RPMs.

Then again, you could just find the source for the package, compile it, but not install it, and then copy what you need.

Remember that RPM keeps an installed dependancy DB, so be careful not to confuse that or things might get wonky later.

Cheers,

Finegan
 
Old 01-24-2002, 04:13 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what do you mean by installing a single file? you can get at the contents of a rpm file using rpm2cpio, but to actually install it... i don't follow really.
 
Old 01-24-2002, 04:24 PM   #4
Road
Member
 
Registered: Jan 2002
Distribution: Debian Based only but have tried most others.
Posts: 82

Original Poster
Rep: Reputation: 15
Well maybe install is not the right word. I am need a file off a C library RPM. The problem is that it the RPM also contains files for KDE (Files I do not want on a system without KDE or any type of X windows). There is a total of 6 or so files that are copied to /usr/lib but I only need one of them to get the program working. The reason why I do not want to install the entire package is for really cleaness and security. I understand I could install and delete the extra files afterwards but I thought as powerfull RPM was there was a command I could not find.

I do like the idea of forcing the files to a different location that way I dont have to worry about deleted needed Libaries that where updated. The problem is I am writing a HowTo so I wanted to keep it as simplistic as possible.

Thanks,

Road
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RPM question merchtemeagle Linux - Newbie 1 11-08-2004 03:25 PM
RPM Question jlivio Linux - Newbie 2 03-06-2004 08:24 PM
rpm question tgkspike Linux - Newbie 2 02-02-2004 10:08 PM
RPM question aizkorri Programming 1 04-20-2002 02:02 PM
RPM question rootlinux Linux - Newbie 4 04-13-2002 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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