Subscribe to How-To Geek

Welcome to the How-To Geek Forums

We encourage you to register on our forums and post any questions you might have. The How-To Geeks monitor this forum and will respond to your question quickly.

How-To Geek Forums » Linux

how to make rpm from .tar.gz files

(3 posts)
  • Started 1 year ago by deadend
  • Latest reply from jake
  • Topic Viewed 1589 times


deadend
Posts: 1

hello everyone....

can anyone tells me how can i make a rpms for my redhat linux. today i download one software, but this is in .tar.gz form. i don't how to make rpm form .tar.gz file....

can anyone teach me .....

thanks in advance

Posted 1 year ago #
 
blastph3my
Posts: 40

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.

Posted 1 year ago #
 
jake
jake
Posts: 11

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.

Posted 11 months ago #
 

RSS feed for this topic

Reply

You must log in to post.

Sponsored Links
Getting Started
About How-To Geek
What Is That Process?
svchost.exe
jusched.exe
dwm.exe
ctfmon.exe
wmpnetwk.exe
wmpnscfg.exe
rundll32.exe
wfcrun32.exe
Ipoint.exe
Itype.exe
Wfica32.exe
Mobsync.exe
Cmd.exe
Dpupdchk.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. All Rights Reserved.