LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-25-2005, 04:00 AM   #1
saipraveen
Member
 
Registered: Jun 2005
Location: Hyderabad
Posts: 35

Rep: Reputation: 15
difference between source rpm's and tarballs


What is the difference between installing source rpm's and installing from source balls
 
Old 07-25-2005, 04:35 AM   #2
dhirsolo
Member
 
Registered: Apr 2005
Location: India
Distribution: RHEL, Fedora Core , SUSE, Ubuntu, etc
Posts: 54

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


Last edited by dhirsolo; 07-25-2005 at 04:46 AM.
 
Old 10-17-2005, 07:53 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
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.
 
Old 10-17-2005, 10:21 PM   #4
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
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
 
  


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
Are source RPM's and binary RPM's installed the same way? Simon Adebisi Linux - Software 3 06-28-2005 04:45 AM
Question on tarballs and .rpm's... tarballed Linux - Software 2 07-18-2003 11:29 PM
Source RPM's GtkUser Linux - Software 3 04-02-2003 04:57 PM
Compiling from source tarballs (ex.: WINE) lhoff Linux - Software 4 04-09-2002 01:54 PM
What's the difference between i386,i586,i686 rpm's daverino Linux - Newbie 2 02-15-2002 11:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:23 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration