-   Linux - Newbie (
-   -   difference between source rpm's and tarballs (

saipraveen 07-25-2005 03:00 AM

difference between source rpm's and tarballs
What is the difference between installing source rpm's and installing from source balls

dhirsolo 07-25-2005 03:35 AM

Source rpms are not actually rpms which installs automatically (by <rpm - command> or package manager). But these are the packed/zipped/packed source codes of the packages which can be extracted to folder and then you can compile the source code as per your choice and then install them.

in case of tarball it is also a another kind of packed archieve.

in both the cases we have to unpack them to a folder and then process further.


jschiwal 10-17-2005 06:53 AM

When you install a source rpm, there will be a <package>.spec in the SPECS directory, and a tarball and patches in the SOURCES directory.
There are different phases that you can perform with a source RPM file, from %prep to %install. For example, if you run the command 'rpmbuild -bp <package>.spec', this will apply the patches. Then there is a directory in the BUILD directory that is the same as you would have if you had downloaded the same version tarball.

You can use another 'rpmbuild' command to perform the install. Actually, if you wanted to install it you would use this instead of 'rpmbuild -bp' at the start.

Here is a tip that might interest you. Suppose that you want to learn programming in the bash shell, and you want to print out the bashref manual. Install the bash-<version>.src.rpm package. Then apply the patches (sometimes the documents will change also) with 'rpmbuild -bp bash.spec' while in the SPECS directory. ( /usr/src/redhat/SPECS or sometimes /usr/src/packages/SPECS)

Then cd to the BUILD directory: cd ../BUILD
cd to the bash-<version>/ directory
cd bash-3.0/
Now run ./configure to produce a Makefile

Since bash is already installed, we don't need to make it. There are targets for the documentation.
make dvi
make pdf
make ps

Now the documentation you generated is in the doc/ subdirectory.

Because the documentation is being built from the sgml or tex source, the document produced is much better than what 'info bash' produces on the screen.

FYI, it's 154 pages long.

There are similar manuals you can generate from the coreutils package, the find package, the tar package and others. For very common programs, having a 3 ring binder for reference is a great aid.

tkedwards 10-17-2005 09:21 PM - Mandriva RPM HOWTO - RPM Howto

Should help you see how RPMs are made and how source tarballs fit in

All times are GMT -5. The time now is 11:50 AM.