LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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


Reply
  Search this Thread
Old 10-14-2003, 01:30 AM   #1
chinmay nautiya
Member
 
Registered: Nov 2002
Location: kotdwara, uttaranchal, india
Posts: 39

Rep: Reputation: 15
Difference between .src.rpm & .tar.gz packages


I know what are .rpm packages (they are precompiled for specific kernel and architechture) but i don't know the difference between the - .src.rpm & .tar.gz packages and how to use them. please anybody explain me thoroughly. thanks.
 
Old 10-14-2003, 01:46 AM   #2
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Exclamation No real expert here

RPM = Redhat Package Manager. Usually used by Mandrake and Redhat for software. I think the src.rpm is a kernel but not 100% sure.

Tar.gz is a gunzipped and tarred file. Tar takes a lot of files and makes them into one big file. The gzip compresses the file. Always start at the end when undoing. Gunzip it first then untar it. That leaves you with the files in a directory. Never change the name of the file. I did that once. It was a mess. There are also bz2 files. Just a newer version sort of.

There will usually be a read me in there when you get it untarred that will list the details to install. Kind of varies depending on what it is. Have to compile the kernel or make then make install for software.

Someone else may have a good link that will give better info. This should clear the water a liitle bit.

Oh, tar is Tape Archive. Used to backup files to a tape. Looks like a big cassette.

Later

 
Old 10-14-2003, 02:25 AM   #3
GŠutama
Member
 
Registered: Jun 2003
Location: Tokyo
Distribution: Gentoo
Posts: 78

Rep: Reputation: 15
.src.rpm files are sort of between .tar.gz (called tarball)and .rpm files. since dalek already described what .tar.gz files are (i.e just zipped source code) I will just explain .src.rpm.

A tarball is a good way of installing new software however the down side of tarballs is there is no good way of removing software. Typically when you build install a tarbal you run
Code:
./configure
make
make install
If you want to remove this software you can, if you are lucky, run make remove or make uninstall. But for this to work the makefile has to include instructions of what to remove, and that is sometimes not the case.
hmm. enough about that.

the .src.rpm files are like a tarball but with som aditional information that makes it possible for 'rpm' to compile and build a .rpm package. This package is compiled for your machine and saved in some RPM directory.
For me it is
Code:
/usr/src/RPM/RPMS/i586/
because I use the i586 arch.

This is nice because you can now install the .rpm file and get the program in your rpm database

so in short:
rpm :- pre compiled source
.src.rpm :- source code that will compile on your machine and this produces a .rpm file.
.tar.gz :- just plain zipped source code
 
Old 10-14-2003, 01:37 PM   #4
chinmay nautiya
Member
 
Registered: Nov 2002
Location: kotdwara, uttaranchal, india
Posts: 39

Original Poster
Rep: Reputation: 15
thanks Dalek & GŠutama, but some question still there that -
- how to use the .src.rpm file so that i can get the final RPM file. pls explain further.
 
Old 10-14-2003, 01:47 PM   #5
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
This may help:



4. Using RPM

In its simplest form, RPM can be used to install packages:

rpm -i foobar-1.0-1.i386.rpm

The next simplest command is to uninstall a package:

rpm -e foobar



If that don't help try this:



While these are simple commands, rpm can be used in a multitude of ways. To see which options are available in your version of RPM, type:

rpm --help

You can find more details on what those options do in the RPM man page, found by typing:

man rpm



I just click on it with the mouse myself. Click yes and off it goes. I don't know what it does but it usually works.

 
Old 10-14-2003, 02:18 PM   #6
GŠutama
Member
 
Registered: Jun 2003
Location: Tokyo
Distribution: Gentoo
Posts: 78

Rep: Reputation: 15
I use the --rebuild flag to create a binary package.

for this to work you might need some additional packages for rpm.

these are ( as far as I know, taken from http://www.xs4all.nl/~hanb/software/...enericrpm.html)

* The package rpm-build which holds scripts used to build packages.
* The package spec-helper which is a tool to minimize the specfiles by doing automatic things such as stripping the binaries and compressing the man pages.
* The package libtool which is used by some configure scripts to build shared libraries.
* If you want to have AntiAliased font support you have to install the Xft-devel rpm.

now do a
Code:
rpm --rebuild package.src.rpm
rpm -Uvh /path/to/package/package.rpm
dalek: used the -i flag but I kind of like the -Uvh flags
U: update
v: visual
h: hash (prints '#' signs)
 
Old 10-14-2003, 04:05 PM   #7
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Post

I guess it was not obvious. I copied that out of the How to that's on my system. That's why I put I just click it and let it go. I have never done one in command line before.

Later

 
Old 11-10-2003, 12:43 PM   #8
chinmay nautiya
Member
 
Registered: Nov 2002
Location: kotdwara, uttaranchal, india
Posts: 39

Original Poster
Rep: Reputation: 15
thanks for explaining me thouroghly. bye.
 
Old 08-01-2006, 03:40 AM   #9
prajasekarbe
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Rep: Reputation: 0
best installation ?????

Quote:
Originally Posted by chinmay nautiya
I know what are .rpm packages (they are precompiled for specific kernel and architechture) but i don't know the difference between the - .src.rpm & .tar.gz packages and how to use them. please anybody explain me thoroughly. thanks.


which type of installation is better,either tar or rpm

Last edited by prajasekarbe; 08-01-2006 at 04:06 AM.
 
Old 08-01-2006, 04:11 AM   #10
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
RPMs are generally easier to manage, and as mentioned above, they are easier to remove, and also to keep track of updates (especially if you use something like yum to update), because rpm maintains a database of what's installed.

However, there are two downsides to rpms that come to mind. First, not every piece of software is in an rpm, or at least in an rpm for your distro. The other is that you are reliant on the packagers to produce updates in a timely fashion. You may, for example, want to update something like clamav as soon as it is released, rather than wait a week or two for a new package.

Some rpm's also have quirks. There is, supposedly and issue of compatability between some repos, for example livna.org and the freshrpms repos are meant to have issues working together (something about renaming system files). I've also found occasionally that dependencies can be problematic for some packages.

Rgds
 
Old 08-01-2006, 04:13 AM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Use the rpmbuild command to build an RPM from the source rpm. E.G.: "rpmbuild -ba package.spec"
There are several options, such as "-bp" to just apply the patches, and "-bi" to build a package and install it.

See the "rpmbuild" man-page for details.

A source RPM will install a tarball in the <rpmbase>/SOURCES/ directory. It will also install patches in the same directory. Also, a package.spec file is installed in <rpmbase>/SPECS/ directory.

The source RPM will contain an earlier version of the source, and patches to make it current.
 
Old 08-01-2006, 04:33 AM   #12
prajasekarbe
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Rep: Reputation: 0
which is better

Quote:
Originally Posted by billymayday
RPMs are generally easier to manage, and as mentioned above, they are easier to remove, and also to keep track of updates (especially if you use something like yum to update), because rpm maintains a database of what's installed.

However, there are two downsides to rpms that come to mind. First, not every piece of software is in an rpm, or at least in an rpm for your distro. The other is that you are reliant on the packagers to produce updates in a timely fashion. You may, for example, want to update something like clamav as soon as it is released, rather than wait a week or two for a new package.

Some rpm's also have quirks. There is, supposedly and issue of compatability between some repos, for example livna.org and the freshrpms repos are meant to have issues working together (something about renaming system files). I've also found occasionally that dependencies can be problematic for some packages.

Rgds


hi

which type of installation is better.either installed by rpm or tar
package.????????

regards.

Last edited by prajasekarbe; 08-01-2006 at 08:03 AM.
 
Old 08-01-2006, 05:03 PM   #13
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Quote:
Originally Posted by prajasekarbe
hi

which type of installation is better.either installed by rpm or tar
package.????????

regards.
If you use a rpm based distro, then use the rpm package. If you use the tarball you may have to configure it and compile it too.

 
Old 08-08-2006, 08:56 AM   #14
prajasekarbe
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Rep: Reputation: 0
source rpm install

Quote:
Originally Posted by dalek
RPM = Redhat Package Manager. Usually used by Mandrake and Redhat for software. I think the src.rpm is a kernel but not 100% sure.

Tar.gz is a gunzipped and tarred file. Tar takes a lot of files and makes them into one big file. The gzip compresses the file. Always start at the end when undoing. Gunzip it first then untar it. That leaves you with the files in a directory. Never change the name of the file. I did that once. It was a mess. There are also bz2 files. Just a newer version sort of.

There will usually be a read me in there when you get it untarred that will list the details to install. Kind of varies depending on what it is. Have to compile the kernel or make then make install for software.

Someone else may have a good link that will give better info. This should clear the water a liitle bit.

Oh, tar is Tape Archive. Used to backup files to a tape. Looks like a big cassette.

Later



hai

how to install the source rpm (src.rpm). help me...........

rds.
 
Old 08-08-2006, 02:47 PM   #15
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
I have never done a source install like that. Since I use Gentoo, portage takes care of that for me. I'm sure someone here knows how to do it though.

 
  


Reply

Tags
better, install, installation, rpm, srcrpm, tar, type


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
is it ok to use i386 rpm for i686 & how about src rpm amolgupta Linux - Software 4 05-01-2013 08:45 AM
.tar.gz and .tar.bz and .src.rpm how to rpms gadekishore Linux - Software 2 10-13-2005 12:51 AM
src.rpm packages charnel Linux - Software 5 04-06-2005 05:27 PM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 12:08 PM
Difference between src.rpm files and source.rpm files ja_nch Red Hat 2 09-06-2003 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:04 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration