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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-20-2003, 04:10 AM
|
#1
|
Member
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346
Rep:
|
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
|
|
|
08-20-2003, 06:59 AM
|
#2
|
Member
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840
Rep:
|
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!
|
|
|
08-20-2003, 07:15 AM
|
#3
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
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.
|
|
|
08-20-2003, 07:39 AM
|
#4
|
Member
Registered: Jul 2003
Location: sweden
Distribution: gentoo @home, RH @ school
Posts: 107
Rep:
|
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
|
|
|
08-20-2003, 07:47 AM
|
#5
|
Member
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346
Original Poster
Rep:
|
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
|
|
|
08-20-2003, 08:57 AM
|
#6
|
Member
Registered: Nov 2002
Location: Austria
Distribution: Redhat 9
Posts: 140
Rep:
|
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?
|
|
|
08-20-2003, 09:43 AM
|
#7
|
Member
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346
Original Poster
Rep:
|
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
|
|
|
08-20-2003, 10:51 AM
|
#8
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep:
|
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.
|
|
|
08-20-2003, 11:27 AM
|
#9
|
Member
Registered: Nov 2002
Location: Austria
Distribution: Redhat 9
Posts: 140
Rep:
|
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 ;(
|
|
|
08-20-2003, 11:35 AM
|
#10
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep:
|
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.
|
|
|
08-21-2003, 04:33 AM
|
#11
|
Member
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346
Original Poster
Rep:
|
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
|
|
|
08-21-2003, 06:24 AM
|
#12
|
Member
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840
Rep:
|
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.
|
|
|
08-21-2003, 06:30 AM
|
#13
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 01:28 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|