[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Others  |  Miscellaneous  |  Topic: Diffrence between rpm, src.rpm, tar.gz, .Z, tgz, tar.bz2
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: Diffrence between rpm, src.rpm, tar.gz, .Z, tgz, tar.bz2  (Read 1766 times)
0 Members and 1 Guest are viewing this topic.
vlinux1
Linux Learner
***
Offline Offline

Posts: 112


View Profile
« on: December 13, 2005, 07:36:12 AM »

Dear All,

please tell me the diffrence between Rpm,Srcrpm&tar.gz package.

Which is the best package & why? (I am confuse )

Thanks in advance
Logged
dragoncity99
LST CareTaker
Experienced
*****
Offline Offline

Posts: 494


View Profile
« Reply #1 on: December 14, 2005, 09:45:55 AM »

Dont confuse urself. I will do it in short and simple words.

1. RPM
RedHat Package Manager files are readily compiled binaries. U can just install it by initiating:
Code:

# rpm -ivh my-application.rpm


2. src.rpm
Source RPM. This is the package contains only the source code for the an application.

When u install this binary, all the source code will be extracted to ur linux system. No binaries/executable files for u to run an application.

To run an installation on src.rpm files:
Code:

# rpm -ivh my-application.src.rpm



3. tar.gz
The content in this package can be either a binary/a source code okay. Dont' relate it with RPM. U will only get confused.

IMPORTANT: .tar.gz is a way used to compress files/directories into one small file.

Let's say i have a "Directory" call "MyDirectory" and it it contains all my files and programs. If i wan to compress it into one file i do this:

Code:

# tar czvf MyDirectory.tar.gz MyDirectory


To extract files:
Code:

# tar xzvf MyDirectory.tar.gz


4. tar.bz2
Same explaination as in [3], the difference is that, when u see tar.gz (it's using gzip compression to compress files).

Let's say i have a "Directory" call "MyDirectory" and it it contains all my files and programs. If i wan to compress it into one file i do this:

Code:

# tar cjvf MyDirectory.tar.gz MyDirectory


To extract files:
Code:

# tar xjvf MyDirectory.tar.bz2


And when u see tar.bz2, (it's using bzip2 compression to compress files)

5. tgz
This is very confusing indeed. I divide this into 2 category:
========
Category #1
========
Slackware use tarballs, with .tgz extension for their compiled binaries that is readily to be installed.
For example:
Code:

# installpkg my-slackware-tarball.tgz

Don't worry bout this, if they tell u it's a Slackware tarball. Then it is.

========
Category #2
========
Sometimes developers for some applications use .tgz file extension to represent .tar.gz extensions.

Just remember:
If websites that gives u a tgz file and never mention it's a Slackware tarball/package.

IT IS A NORMAL TARRED GZIPPED ARCHIVE
tgz = tar.gz



6. .Z
Some ppl call it a Liempel Z... i don remember the compression name used. But this is another type of archive:
To compress using this Liempel algorithm:
Code:

# compress myfile
(And u will get a file called myfile.Z)


To uncompress using this Liempel algorithm:
Code:

# uncompress myfile.Z
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2215


View Profile
« Reply #2 on: December 17, 2005, 05:24:27 AM »

Good post Dragoncity99 Smiley
I am making it sticky so that it appears above all posts always.
Logged
dragoncity99
LST CareTaker
Experienced
*****
Offline Offline

Posts: 494


View Profile
« Reply #3 on: December 17, 2005, 12:29:39 PM »

A million thanks to u, Ricky. Smiley
Logged
Ujjwol
Linux Learner
***
Offline Offline

Posts: 54


View Profile
« Reply #4 on: May 20, 2007, 02:32:25 AM »

i cannot express how i can thank you
Logged
gauravbajaj
LST CareTaker
Experienced
*****
Offline Offline

Posts: 597


View Profile
« Reply #5 on: May 30, 2007, 08:47:48 AM »

Excellent explained Dragoncity

Great job  Smiley
Logged
akashyak
Tux Awared
**
Offline Offline

Posts: 44


View Profile
« Reply #6 on: July 31, 2007, 10:22:14 PM »

What about .deb file ? I have downloaded Yahoo messenger file, and it is like this:

ymessenger_1.0.4_1_i386.deb

Now can you instruct me regarding this ?
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2215


View Profile
« Reply #7 on: August 01, 2007, 05:54:48 AM »

.deb is for debian and debian based linux distrobutions.
If you have Debian, ubuntu or some distro based on debian then you can use this ie. *.deb files .
Its easy to install.
Code:
dpkg -i <filename>.deb

To remove .deb file
Code:
dpkg -remove <filename>.deb
Logged
aktiwari4u
LST CareTaker
Linux Learner
*****
Offline Offline

Posts: 107


View Profile WWW
« Reply #8 on: April 26, 2008, 03:56:42 AM »

This is really a good addon to this best explained topic. thanks to both of you .
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
diffrence nat and with out nat General Networking Support in Linux tomamodi 3 572 Last post September 10, 2005, 06:59:47 AM
by tomamodi
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 01, 2008, 07:44:59 PM

Login with username, password and session length
Navigation
Recent Discussions
[November 29, 2008, 02:23:49 PM]

[November 29, 2008, 02:14:14 PM]

[November 29, 2008, 04:00:36 AM]

[November 28, 2008, 07:05:28 AM]

[November 28, 2008, 07:04:39 AM]

[November 28, 2008, 06:58:16 AM]

[November 28, 2008, 06:47:09 AM]

[November 26, 2008, 11:53:32 AM]

[November 26, 2008, 04:00:22 AM]

[November 25, 2008, 06:44:47 PM]
Members
Total Members: 6252
Latest: rash31
Stats
Total Posts: 8285
Total Topics: 2257
Online Today: 34
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 10
Total: 10
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc