LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

View Poll Results: how to install .tar.gz and .tar.bz and .src.rpms in fedora core 2
1 0 0%
2 0 0%
Voters: 0. You may not vote on this poll

Reply
 
Search this Thread
Old 10-13-2005, 02:11 AM   #1
gadekishore
LQ Newbie
 
Registered: Sep 2005
Location: india
Distribution: rhel 3.0
Posts: 21

Rep: Reputation: 15
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
 
Old 10-13-2005, 02:34 AM   #2
jayanthorb
LQ Newbie
 
Registered: Oct 2005
Posts: 14

Rep: Reputation: 0
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
 
Old 10-13-2005, 02:49 AM   #3
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
If you mean building rpms from source packages then take a look at rpm.org and the Fedora rpm developers guide.
 
Old 10-15-2005, 12:59 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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.
 
Old 10-15-2005, 03:53 AM   #5
jayanthorb
LQ Newbie
 
Registered: Oct 2005
Posts: 14

Rep: Reputation: 0
Sources are required by programmers.. See your requirement and install the source rpm..
 
Old 12-18-2005, 03:00 AM   #6
djuhl30
Member
 
Registered: Dec 2005
Location: IRAQ (BACK @ FT HOOD NOW)
Distribution: GENTOO now
Posts: 98

Rep: Reputation: 15
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
 
Old 12-18-2005, 03:01 AM   #7
djuhl30
Member
 
Registered: Dec 2005
Location: IRAQ (BACK @ FT HOOD NOW)
Distribution: GENTOO now
Posts: 98

Rep: Reputation: 15
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
 
Old 12-26-2005, 11:19 AM   #8
tweakerxp
Member
 
Registered: Nov 2005
Location: Dem Dar Hills of Tennessee
Distribution: SuSE 10.0
Posts: 55

Rep: Reputation: 15
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
 
Old 12-26-2005, 11:37 AM   #9
Abomb
Member
 
Registered: Dec 2005
Location: ~/
Distribution: Ubuntu
Posts: 156

Rep: Reputation: 30
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!
 
Old 12-26-2005, 12:04 PM   #10
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
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?
 
Old 12-26-2005, 12:24 PM   #11
tweakerxp
Member
 
Registered: Nov 2005
Location: Dem Dar Hills of Tennessee
Distribution: SuSE 10.0
Posts: 55

Rep: Reputation: 15
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.
 
Old 12-26-2005, 12:30 PM   #12
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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.
 
Old 12-26-2005, 02:51 PM   #13
tweakerxp
Member
 
Registered: Nov 2005
Location: Dem Dar Hills of Tennessee
Distribution: SuSE 10.0
Posts: 55

Rep: Reputation: 15
"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.
 
Old 12-26-2005, 02:57 PM   #14
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install .tar.gz and .tar.bz and .src.rpms gadekishore Linux - Software 3 08-06-2010 05:02 PM
.tar.gz and .tar.bz and .src.rpm how to rpms gadekishore Linux - Software 2 10-13-2005 12:51 AM
how to install .tar.bz and src.rpms and tar.gz files gadekishore Linux - Software 1 10-12-2005 08:09 PM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 12:08 PM
.tar.gz vs rpms Chijtska Linux - General 10 02-01-2002 01:49 PM


All times are GMT -5. The time now is 01:26 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration