How-To Geek Forums / Linux
how to make rpm from .tar.gz files
(3 posts)It doesn't work like that. RPMs are precompiled programs for your architecture. .tar.gz is source code that you personally need to compile. run the following commands in the commandline (in the folder where your tarball (technical term for .tar.gz files) is):
(you may want to run this as root)
tar -xvzf <your tar file>
cd <directory created by tar extraction>
./configure
make
make install
that should install it, assuming you aren't missing any dependencies. It'll tell you when you ./configure.
There is also a possibility that that file is a Slackware package, though those are more commonly .tgz rather than .tar.gz. It depends where you got it from. If it *is* a Slackware file, you can use the Alien program and run the following command to make an rpm: (or sudo if you don't have fakeroot)
fakeroot alien -r name.tar.gz
However, keep in mind that you rarely need to do this as you can find tons of sites filled with RPMs out there, such as RPM Find.
Topic Closed
This topic has been closed to new replies. Please create a new topic instead.
