LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-28-2008, 08:48 AM   #1
maxy7710
Member
 
Registered: Jan 2008
Location: Mumbai, india
Distribution: REDHAT, FEDORA,SUSE, UBUNTU, ORACLE ENTERPRISE LINUX & SOLARIS 10
Posts: 130

Rep: Reputation: 17
Post Why tarball is better than rpm


Why Tarball is better than RPM????

I have installed both of them & do not find any differnce as of now, then why do linuxites prefer tarbal over RPM.
 
Old 04-28-2008, 08:52 AM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Tarballs (.tar.gz and .tar.bz2) are usually the compressed source code of a particular program - whereas RPMs (and TGZs and DEBs) are the compressed pre-compiled binaries. With tarballs, you have to compile them yourself; which for the newer Linux user may seem a little silly, but after a while, you realize you have A LOT more control over how something compiles.

Whereas binary packages (TGZ, DEB, RPM) usually already have the program compiled (with full capabilities - meaning no libraries have been forcefully left out of compilation) for your specific processor architecture, and can also provide dependency tracking (except for TGZ).
 
Old 04-28-2008, 08:54 AM   #3
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
usually, source code is provided as tarball and distro specific binary as rpm. This is not always the case, but it is often the case.
The source code is not specific to a distro and is usually (note the usually again) directly provided by the upstream maintainer of the software whereas the distro specific rpm is USUALLY maintained by downstream maintainer.
You would usually prefer the tarball if the rpm is badly maintained or not present for your distro. The rpm is perfectly fine and easier to use if your distro is well maintained. You can have the source as rpm in most distros.

Last edited by Agrouf; 04-28-2008 at 08:56 AM.
 
Old 04-28-2008, 09:18 AM   #4
maxy7710
Member
 
Registered: Jan 2008
Location: Mumbai, india
Distribution: REDHAT, FEDORA,SUSE, UBUNTU, ORACLE ENTERPRISE LINUX & SOLARIS 10
Posts: 130

Original Poster
Rep: Reputation: 17
Post thnks guys

thnks guys for the input but except from the control how to compile it, are there any more reasons for its wide use throughout the communitty.
 
Old 04-28-2008, 09:31 AM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Upgrade from an older version to newer version of an rpm package is as easy as 'rpm -U'. I don't know of any such mechanism for upgrading a source-based package from one version to the next.

Applying patches to rpms is easier than to source packages.

Uninstalling an rpm is much easier than uninstalling a tarball.
 
Old 04-28-2008, 09:54 AM   #6
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Preparing rpm is additionnal work from the community.
The developers do the source and a tarball is quickly done (one command to create a tarball).
As a result, there is a delay between the time the developer release the code and the distro maintainers prepare the rpm. Moreover, many distros don't have rpm at all.
Sometimes, you can have difficulties to find a prepared package for your distro, whereas the tarball is available from the developer.
Actually the developer doesn't care about the distro you are using and he just release the tarball.
This is the case most of the time, although from time to times the dev will provide rpm.
So, the tarball are widely used because they are useaable on any distro, whereas the rpms are widely used, but only in the rpm based distros.
If your distro is rpm based and you are not a developer, you should probably use rpm.
 
Old 04-28-2008, 12:46 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
The most objective comparison IMHO still is Comparing Linux/UNIX Binary Package Formats. Source tarballs aren't in it though. While source tarballs can be deployed everywhere (provided build and runtime dependencies are available) it's an uneven comparison since source tarballs are not a package management format. If they where, they would clearly be lacking. If you don't want to read the link, and you haven't noticed any differences, let me ask you a few questions so you can find out yourself. Substitute tarball for package:

Integrity
- What's the quality assurance of the package?
- Can you verify package contents?
- Without external means?
- Per file attributes like owner, group, access rights and MD5 hash?

Security
- Do you need a compiler in your production environment to get your package installed?
- Can you verify package authenticity by GPG signature?
- Without having to download the sig separately?

Efficiency
- How fast can you get the OS installed on a pristine machine?
- Can you deploy a kernel or a set of applications uniformly across those w/o having to remember compiletime choices?
- Forgetting any dependencies?
- Can you scale both up to onehundred servers efficiently?
- Can you enumerate packages and contents easily (w/o having to resort to sometimes inaccurate tools like 'installwatch')?
- By installtime, category or size?
- One year later?


* If you say none of those matter you probably also say you're "not a big believer in automated dependency handling".
 
Old 04-29-2008, 12:52 AM   #8
maxy7710
Member
 
Registered: Jan 2008
Location: Mumbai, india
Distribution: REDHAT, FEDORA,SUSE, UBUNTU, ORACLE ENTERPRISE LINUX & SOLARIS 10
Posts: 130

Original Poster
Rep: Reputation: 17
Thnks Guys thank you very much.........
 
Old 04-29-2008, 10:12 AM   #9
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,151

Rep: Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203
Many package-formats such as RPM are "compressed files" just like ... in fact they may actually be ... "tarballs." But a package consists of more than just the files themselves: a package also includes an install/uninstall script that is used when you install and when you remove the package.

It is historically the case that "tarballs" usually contain source-code and not binaries, but this is not mandatory. Likewise, historically most RPMs contain precompiled binaries, although source-code packages also exist.

The essential difference is that a "package" includes both the payload and an install/uninstall script, which the package-manager knows how to find and invoke.

The same idea is found in some Windows installers: you can sometimes "unzip" an installer to get direct access to the payload files. But the installer contains both the payload and the automated install/uninstall scripting that drives the pretty step-by-step display that you're so accustomed to.

Last edited by sundialsvcs; 04-29-2008 at 10:14 AM.
 
  


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
php tarball to rpm troubles gatsby Linux - Software 2 04-13-2006 01:18 PM
can download tarball, but not RPM ylts Linux - Networking 11 04-15-2005 02:58 AM
I need RPM to tarball conversion mhelliwell Linux - General 3 03-18-2005 11:11 AM
Suse 9.2 rpm vs. tarball installations ursahoribl Linux - Newbie 1 02-14-2005 01:18 AM
create kernel RPM from tarball? randomx Linux - General 2 07-17-2003 12:01 AM


All times are GMT -5. The time now is 02:50 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