Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian Based only but have tried most others.
Posts: 82
Rep:
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?
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.
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.
Distribution: Debian Based only but have tried most others.
Posts: 82
Original Poster
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.