Red HatThis forum is for the discussion of Red Hat Linux.
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.
I have some compressed (tar.gz) files that i need to get users to install on their servers but it becomes a pain some times to explain the command and where to uncompress it to.
Is there a way to create an rpm of the files inside the tar.gz so that by just running rpm -ivh "file.rpm" it extracts them to the correct target destination.
For example: rpm -ivh "www.rpm" will exact files inside rpm into /var/www
Thank you very much for your reply, no we dont have alien installed and would not be abled to install it over quite a number of different servers.
Is is no way i can build an rpm just to extract files to a certain location? Especially as i may need to supply this rpm to red hat satalite servers so they can be used as a respositary based install.
You need alien package only do compile the tar.gz's, once rpm's are created you do not need it.
To create rpms with rpmbuild, you need to create simple spec file first and use it to compile rpm. Check this tutorial and Maximum RPM tutorial.
You can also check checkinstall utility.
You can pack it inside rpm, and then use %post (or was it %postinstall ?) to run it immediately after rpm is installed. Check http://www.rpm.org/max-rpm/index.html for details
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.