LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   difference between source rpm's and tarballs (https://www.linuxquestions.org/questions/linux-newbie-8/difference-between-source-rpms-and-tarballs-346456/)

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.

:cool:

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
./configure

Since bash is already installed, we don't need to make it. There are targets for the documentation.
make dvi
or
make pdf
or
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

http://qa.mandriva.com/twiki/bin/view/Main/RpmHowTo - Mandriva RPM HOWTO
http://www.rpm.org/RPM-HOWTO/ - RPM.org 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 02:48 AM.