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.
|
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 :D :D :D :D |
.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 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/ 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 |
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. |
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. :D :D :D |
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 U: update v: visual h: hash (prints '#' signs) |
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 :D :D :D :D :D |
thanks for explaining me thouroghly. bye.
|
best installation ?????
Quote:
which type of installation is better,either tar or rpm |
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 |
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. |
which is better
Quote:
hi which type of installation is better.either installed by rpm or tar package.???????? regards. |
Quote:
:D :D :D :D :D |
source rpm install
Quote:
hai how to install the source rpm (src.rpm). help me........... rds. :study: |
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.
:D :D :D :D :D |
A source rpm is installed the same way as an ordinary rpm but it does not show up in the rpm database (since its just source code). If you install a source rpm, its really of no use, unless you intend to rebuild it or make changes to the contents and then build an rpm. Most people don't have to install source rpms, since you can build an rpm from a source package without installing it. rpm.org is a good resource if you need to find out more about rpm and source rpm.
|
Quote:
:tisk: |
You may want to untar it and see if there is a readme in there. That usually tells you how to install it. May help.
:D :D :D :D |
Quote:
I got some clarification about the tar install,I installed tar package. And how to start the service. Tell me...?? Hi I want to differents between dedicated and cpanel server. Rds. prajasekarbe |
All times are GMT -5. The time now is 07:50 PM. |