LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to intall rpms from .tar.bz and .tar.gz and .src.rpms (https://www.linuxquestions.org/questions/linux-software-2/how-to-intall-rpms-from-tar-bz-and-tar-gz-and-src-rpms-372524/)

gadekishore 10-13-2005 02:11 AM

how to intall rpms from .tar.bz and .tar.gz and .src.rpms
 
hello

can any body help me to install rpms from .tar.bz and .tar.gz and .src.rpms.
and i want to know where the rpm is installed ( i mean ) on which location.?

please send reply by step by step
tnx

jayanthorb 10-13-2005 02:34 AM

For rpms, Most of them can be installed directly from Xwindows..
Right click on that file and try Install Packsages..

For tar.gz, goto the console and type

tar -xzf filename.tar.gz

reddazz 10-13-2005 02:49 AM

If you mean building rpms from source packages then take a look at rpm.org and the Fedora rpm developers guide.

jschiwal 10-15-2005 12:59 AM

Read through the man page of the "rpmbuild" command. This is the command you would use to install from a source rpm.

One advantage to installing from a source rpm, is that a pdf, dvi or post script document can be produced from the texinfo source document.

jayanthorb 10-15-2005 03:53 AM

Sources are required by programmers.. See your requirement and install the source rpm..

djuhl30 12-18-2005 03:00 AM

Yeah www.rpm.org. You'll find to build a rpm you need a understanding of a spec. Not all source comes with a spec file, but you can open a text editor and make one. Learn to make a directory tree for rpm that isnt on your /, so you can make the rpm as a normal user. This will lessen the risk of foobaring your /. It is all at www.rpm.org. You can use the simple macros to make a package, and be sure you understand the rpm database fully. Your distro may have the same program named differently, so thus you'll have 2 versions of the program in the database prolly installed at the same location. If you install a program that needs that prgram. See it can get goofed up. It has been my experience it takes longer to make the rpm as opposed to just compiling it yourself. I try to compile it first looking at the output of configure to see what it actually needs, then I build a package. Sometimes if the source code doesnt have certain devel packages installed it will disable something you want. If that is the case rpmbuild will keep on going building the package with the stuff you actually want. Maybe one day I can like actually know what all these libs do, and not have to do a intitial compile first. But the good thing is if the rpm is built correctly, you'll never have to compile it again.

Dave

djuhl30 12-18-2005 03:01 AM

Oops... I need sleep. I am getting lazy.. I reread my post. I hope you understand it. I mean what I actually meant to say lol... Bed time in 2 hrs lol...

Dave

tweakerxp 12-26-2005 11:19 AM

Quote:

Originally Posted by jayanthorb
For rpms, Most of them can be installed directly from Xwindows..
Right click on that file and try Install Packsages..

For tar.gz, goto the console and type

tar -xzf filename.tar.gz


Sorry, But this doesn't work. Why can't Linux have an auto installer? It would make running Linux for the first time user A LOT easier. This makes me want to go back to Windows. WAY TOO complicated for first timers.

Thanks

Abomb 12-26-2005 11:37 AM

Quote:

Why can't Linux have an auto installer?
Well an auto-installer is already a running program that installs onto the computer. What if that program has bugs or an option you would like to change? You could edit the source code and recompile it then install it manually, giving you more control over the software. In Windows you're at the mercy of who ever designed that software, bugs and all. I would definently check out the websites listed here. Good luck! :)

megaspaz 12-26-2005 12:04 PM

to directly answer your question.

for filename.tar.gz, if the developer was kind enough to offer a spec file, you can try as root:

rpmbuild -ta filename.tar.gz

for filename.tar.bz2 (as root):

rpmbuild -ba filename.tar.bz2

If a proper spec file was included, you'll see a bunch of output from configure and make. You should see the built rpm(s) in /usr/src somewhere.

for source rpms (filename.src.rpm), you need to rebuild them with this command:

rpmbuild --rebuild filename.src.rpm. Again, you should see the built rpm(s) in /usr/src somewhere.

If you're using an older distro, like redhat 7.3 or older, substitute rpmbuild with rpm.

On a side note, why is this topic polled? :confused:

tweakerxp 12-26-2005 12:24 PM

It took me two weeks just to download a program called Azureus. Now that I got it, I can't get it installed. I type in this http://www.tuxfiles.org/linuxhelp/softinstall.html (the second section) and nothing happens.

I just don't understand any of this compile and recompile,RPM,SPEC,WTF....is there a dictionary for these. I have no clue on command line stuff.

I'm using SuSE 10.0, it was a lot easier to load than Ubuntu was.

Nylex 12-26-2005 12:30 PM

Quote:

Originally Posted by tweakerxp
It took me two weeks just to download a program called Azureus. Now that I got it, I can't get it installed. I type in this http://www.tuxfiles.org/linuxhelp/softinstall.html (the second section) and nothing happens.

You don't need to compile Azureus. After extracting it, a directory named azureus will be created and you can "cd" into it and run the executable. I have Azureus in my home folder, but you can put it where you like.

tweakerxp 12-26-2005 02:51 PM

"CD" it???? I don't understand.... sorry for being a dumbass. With this linux thing there is a BIG learning curve, at least for me. Been on Windows too long, I guess.

Nylex 12-26-2005 02:57 PM

Quote:

Originally Posted by tweakerxp
"CD" it???? I don't understand.... sorry for being a dumbass. With this linux thing there is a BIG learning curve, at least for me. Been on Windows too long, I guess.

Change directory, i.e. "cd azureus". Windows also has a cd command.


All times are GMT -5. The time now is 10:53 PM.