LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-20-2003, 04:10 AM   #1
mobassir
Member
 
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Rep: Reputation: 30
Arrow Diferance between rpm, tar, tar.gz, scr.tar, etc


i want to know that difirance between these RPM, TAR, TAR.GZ, SRC.TAR, etc for download

what type pakage is good for download install , upgrade and remove and application .
i mean which type of source file is good to download, and any usefull site to get info about these compressed files

thansk you
 
Old 08-20-2003, 06:59 AM   #2
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
The rpm id "Redhat Packet Manager" type of file, and is the most easiest to install, IF you use a compatible system like RedHat or Madrake. You just have to type

rpm -iv PACKAGE_NAME.rpm

and it will be installed.

A tar file is a archive file which can be extracted by

tar -xvf NAME.tar

and it will be extracted in the current dir.

Now, a tar.gz file is just a tar file that has additionally been gzipped. This is like winzip, but it is a format of compression in unix systems. First , you have to do

gunzip NAME.tar.gz

and you get NAME.tar which you will then extract .

The src.tar is a file containing the source code of the application and if you need source code for seperate compilation or modification, then you should go for it.

The easiest to use is an rpm file, then a tgz(gzipped tar file), and finally the src file.

Hope this helps!
 
Old 08-20-2003, 07:15 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Just to throw a couple more things in:

Tar can unzip and extract a .tar.gz file if you use the -z option:

tar -zxvf filename.tar.gz

Similarly the -j option can uncompressand extract .tar.bz2 files

tar -jxvf filename.tar.bz2

Finally, be aware that .tgz files may be either a .tar.gz file or a compiled Slackware package. If you pay attention to what you are downloading, you shouldn't confuse the two.
 
Old 08-20-2003, 07:39 AM   #4
matador
Member
 
Registered: Jul 2003
Location: sweden
Distribution: gentoo @home, RH @ school
Posts: 107

Rep: Reputation: 15
The easiest is to use the rpm:s IF (as ultimaguy said) you are using Redhat or Mandrake. If you are using Mandrake there are many packages precompiled especially for Mandrake. The whole "tar story" can seem a bit confusing, since you need to compile and so. How to do this is written in a file (usually called README or INSTALL) that you can find in the folder that was created when you untared.

This might help you:

http://www.ibiblio.org/pub/Linux/doc...RPM-HOWTO.html

http://www.linuxquestions.org/questi...threadid=45094
 
Old 08-20-2003, 07:47 AM   #5
mobassir
Member
 
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Original Poster
Rep: Reputation: 30
thank you very much for this nice help
actualy i was windows user and professional but now i am getting knowladge of linux for helping more user

thanks again
 
Old 08-20-2003, 08:57 AM   #6
ichbinesderelch
Member
 
Registered: Nov 2002
Location: Austria
Distribution: Redhat 9
Posts: 140

Rep: Reputation: 15
is it possible that if you install some rpm and you wanna install a tar.gz which needs the libs of the rpm file we installed before that they will not be found?
 
Old 08-20-2003, 09:43 AM   #7
mobassir
Member
 
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Original Poster
Rep: Reputation: 30
and in which type of pakage is easy to remove from linux i am using redhat9
and how can remove or uninstall above type pakege
 
Old 08-20-2003, 10:51 AM   #8
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Yeah - packages install by scripts, which dictate where the files are copied. And if the package copies it someplace weird, or the other app is expecting it someplace weird, they're not going to find each other. To get around that you usually pass a flag to make saying 'THISDIR=*this* dir, dammit'

Try 'man rpm' for removal - it's something simple like 'rpm -uvh foo.rpm' but I don't know what it is because I don't use rpms.
 
Old 08-20-2003, 11:27 AM   #9
ichbinesderelch
Member
 
Registered: Nov 2002
Location: Austria
Distribution: Redhat 9
Posts: 140

Rep: Reputation: 15
to remove rpms rpm -ev foo.rpm

but if the lib is where the rpm did put it and the tar.gz file doesn't find it? got this problem too often ;(
 
Old 08-20-2003, 11:35 AM   #10
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Depends on the program, I think. At least I've never noticed anything consistent. But, for instance, something I wanted to install was looking for files somewhere and it wasn't working, so I said, 'INCLUDES=/usr/include' or wherever it was. So instead of looking in /usr/lib or wherever it did by default, it looked in the right place. I mean, that's probably not a lot of help, but like I say, it seems to vary. Read the documentation for the tar.gz, beyond just the standard INSTALL file, and search your computer for the lib - between that you can usually get the syntax and the location and then it will sometimes work. Or at least get further through the compile process before it fails again.
 
Old 08-21-2003, 04:33 AM   #11
mobassir
Member
 
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Original Poster
Rep: Reputation: 30
what is the default location for application installation in linux(redhat9)
like in windows default programe files.
what is best way to remove an application
i think make clean or make uninstall can remove programe in folder where i ./configure , make and make intsall it.? or what is proper way.

and how can make short cut in xwindows like i have amsn install how can i creat shortcut for all or specific user.

thanks for all
i am getting very good information from all of u
 
Old 08-21-2003, 06:24 AM   #12
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
First of all you have to take into mind that Linux is NOT like windows. So, uninstalling is very very different from windows.

So, if you want to uninstall a rpm file, you can easy do it by
rpm -ev foo.rpm

Now, if you want to remove a file that you have compiled, it depends. I have known some programs that DO NO come with uninstall options. This is simply because you can delete them.

So it is better to just install the files as a user instead of root, and know where you are installing to. When you know this, you can just uninstall the file.

Also in RedHat 9, there is an Add/Remove program application, though I don't think people are happy with it. It is GUI based. For older versions, there is a grpm tool that can be used to uninstall. Just right click on the rpm package and select uninstall.
 
Old 08-21-2003, 06:30 AM   #13
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Quote:
Originally posted by mobassir
what is the default location for application installation in linux(redhat9)
like in windows default programe files.
what is best way to remove an application
i think make clean or make uninstall can remove programe in folder where i ./configure , make and make intsall it.? or what is proper way.

and how can make short cut in xwindows like i have amsn install how can i creat shortcut for all or specific user.

thanks for all
i am getting very good information from all of u
There is no default like Program Files. It depends on what type of program it is. Most things that you *add* to the system will go in /usr/local. The executable part will be in /usr/local/bin, generally. And so on for the various other parts of the program. But there are bin and sbin directories all over the place and some programs install in very odd places. There's no real consistency at all - just rules of thumb.

To remove an rpm, it would be the rpm command, itself. To remove a program you installed from source, you just have to hope there's an uninstall script and that 'make uninstall' will work. Then you can just delete the source directory. 'Make clean' and such like are for the compiling and recompiling processes, rather than for deleting as such. The commands *do* clean up the source but still leave it there ready to recompile.

Shortcuts depend on the window manager. fluxbox doesn't have them at all unless you add a whole other app called fluxdesk, I think. Something like. But for your KDEs and Gnomes, I think you can right click on the desktop or drag an icon from Nautilus or Konqueror, much like Windows, only a little bit more complicated. And I think any shortcut will be for the specific user who creates the shortcut.

Unless you mean you want a file shortcut and not a desktop shortcut as such. Again, there are file manager GUI methods and then there's 'ln -s target shortcut' (I think - I often get 'target' and shortcut backwards.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 10:55 AM
.tar.gz and .tar.bz and .src.rpm how to rpms gadekishore Linux - Software 2 10-13-2005 12:51 AM
Is there a way to transform tar.gz into rpm or is there a GUI for tar.gz MElipse Linux - Newbie 2 04-11-2004 04:31 AM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 12:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:18 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
Open Source Consulting | Domain Registration