Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19th December 2004, 11:02 AM
bamboo_spider Offline
Registered User
 
Join Date: Jul 2004
Posts: 138
Difference between rpm and tar.gz

Hi

Many software for gnu/linux comes as a tar.gz or rpm. The latter are easier to use so why are they released as tar.gz (are they targetting the geekz) or what

Then once we get the tar.gz we need to compile it and me I went and did not instal any compilers so have to reinstall them .

How does one compile from tar.gz any tips

just askin'
__________________
Bamboo
***************
PIII Laptop
386 mb Ram
20 GB HDD -IBM-DJSA-220
FC2 - no dual boot
FC & Linux since June2004
Uttaranchal India
Reply With Quote
  #2  
Old 19th December 2004, 11:21 AM
foolish's Avatar
foolish Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Aalesund, Norway
Age: 26
Posts: 1,888
A tar.gz or tar.bz2 is a tarball with the source code of the application. Source code is the recipie for the software and it has to be compiled into a binary before it can be used. Tarballs are the old way of dealing with software in linux. Back when everyone who used linux was a developer, distributing your stuff as source code made sense.

Today however, most people using linux aren't developers, so they don't need the source code, the process of compiling is hard and it takes too long. RPM is one solution for this.

A RPM package is a container, it holds the binary files needed to run the software, not the source code. This means someone who knows how will compile the software for you, package it in a smart RPM package and distribute it.

When you install a RPM package, it will place the files in your file system so that you can run them. Files are placed in various folders depending on their type, executables (or binaries) are in a folder called "bin", libraries in a folder called "lib", documentation in "doc" and so forth. When you install a RPM package the files are placed in the right folders and a RPM database keeps track of where all the files are, what package they belong to and this makes it easier to keep control of your software.

When you compile and install a tarball, it too will copy the binaries to the right folders, but it won't keep track of the files and which files belong to which package. This means you'll have to manually keep track of your files, which is a lot of work.

The bottom line is, you want to use RPMs, always. Tarballs are an ancient form of installing software, intended for developers and advanced users who want to change stuff in the software. If something you need isn't available as an RPM package, you should ask someone who knows how to build one, or you can ask for an alternative. In Fedora Core, almost all software needed is available as RPM.

To make installation of RPM packages even easier, the process of downloading and installing has been automated using an automatic package tool called YUM. YUM will download and install a package, it's dependencies and install them. Much easier than hunting for packages yourself.

For more, read: http://foolish.fedorausers.org/rpm/index.html
__________________
Sindre Pedersen Bjørdal || http://www.fedorasolved.org || Hardware Profile
- Please adhere to the FedoraForum Guidelines.
Reply With Quote
  #3  
Old 19th December 2004, 11:27 AM
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 44
Posts: 8,256
RPM was developed by redhat and it stands for Redhat Package Management ( I think !!). Tarballs were intruduced long time ago and is also another package management used by Slackware, Collegelinux and other distros.

Mandrake and Suse are rpm based distribution. Tarballs and rpm's are installed in different ways. For tarball we use this command: xzvf tarball_package.tar and for rpm's we use this command: rpm -i (or -ivh) package_mane.rpm
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills :D
Reply With Quote
  #4  
Old 19th December 2004, 11:53 AM
wallace's Avatar
wallace Offline
Registered User
 
Join Date: Nov 2004
Location: India
Posts: 26
Quote:
RPM was developed by redhat and it stands for Redhat Package Management ( I think !!).
Yes, you are right but now it is known as "RPM package manager" another recursive acronym. It's widely acceptable and Redhat's name isno longer attached to it.
Quote:
tarball we use this command: xzvf tarball_package.tar
It's just for extracting the source code out of the archive not for installing the software.
Reply With Quote
  #5  
Old 19th December 2004, 12:03 PM
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 44
Posts: 8,256
Quote:
It's just for extracting the source code out of the archive not for installing the software.
And to continue the installation process you do:
Code:
./configure
make
make install
I just did not wanted to get into that many details.
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills :D
Reply With Quote
  #6  
Old 19th December 2004, 08:04 PM
jayemef's Avatar
jayemef Offline
Registered User
 
Join Date: Sep 2004
Location: Juniata College, PA
Age: 28
Posts: 629
And just make sure you run 'make install' with root privaledges .
__________________
- JMF
Registered Linux User #371168

+Fedora Core 3 - k2.6.10-1.766_FC3
+WindowMaker 0.91.0
Reply With Quote
  #7  
Old 20th December 2004, 12:35 AM
confused261 Offline
Registered User
 
Join Date: Nov 2004
Posts: 42
And what should be equivalant commands to uninstall a package???
Reply With Quote
  #8  
Old 20th December 2004, 03:06 PM
PhilD Offline
Registered User
 
Join Date: Dec 2004
Location: Aberdeen, Scotland
Age: 28
Posts: 71
generally speaking "make clean"... check the readme attached with the software (if any)
Reply With Quote
  #9  
Old 20th December 2004, 03:19 PM
Growler Offline
Registered User
 
Join Date: Mar 2004
Posts: 7
Quote:
Originally Posted by confused261
And what should be equivalant commands to uninstall a package???
'make uninstall' will do the trick, if run as root from within the un-tarred directory. if you install using a .tgz file, and then later delete the build directory, just un-tar it again later, do a ./configure, make, then make uninstall if you wish to remove the files from your system.
Reply With Quote
Reply

Tags
difference, rpm, targz

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD+/- What's the Difference adrianx Wibble 11 31st January 2008 04:32 AM
iso difference Triobe3 Installation and Live Media 1 7th February 2006 08:41 AM
Is there a difference... goldstar1 Installation and Live Media 2 6th August 2005 05:05 AM
What is the difference between GCC and G++? Sunnz Programming & Packaging 11 4th July 2005 05:36 PM


Current GMT-time: 14:03 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat