Linux - NewbieThis 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
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.
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.
How do I install a program that comes as a .tar.gz file? I am running Ubuntu 9.04 on a Thinkpad T400. I know I should use the repositories, but they don't have the software I want. Thanks for your help.
A 'tar.gz' file is just a 'collection' of files packed together (tar) in a compressed (gz) file. To extract the contents use:
Code:
tar xzvf filename
Then you should have a directory (if it's a file containing sources to compile a program) with the same name as the filename. CD into that directory and see if you have a configure or make file.
That depends. First of all, extract the files using the archive manager to a directory of your choice. Once you have done that you should poke around the folder for a file called either "SETUP" of "INSTALL". If you are asked, open these files in the terminal and follow the instructions.
If you can't find a setup file, there is usually a command line way, but I'm not the one to ask about that!
Are you sure there isn't a .deb file to download? Most major vendors offer a tar.gz file, a .rpm and a .deb file.
Out of interest, which software is it? It may be that someone has installed the same software and may be able to offer more assistance.
After the important things were said above, let me review them to you:
1. Extract the files --tar.gz is like .zip or .rar files in windows: they are archives. EricTRA's instruction above is a simple untarring code.
2. If your archive contained source --you will cd into the directory and compile it, follow the sequence given by bret381 above.
3. If your archive contained a package --you will install it according to normal procedure in Ubuntu: sudo apt-get install /dir/*.deb (if I have remembered it still).
4. If your archive contained a script --say SETUP or INSTALL script you will only need to run it: sudo ./SETUP or ./INSTALL.
5. If your archive contained another script --you will still need to run it the same way in #4 but if "permission" complains you will set first an "executable" permission in the script: doing this: sudo chmod 775 ./scriptname.sh, then you may proceed to run it.
There are growing numbers of installation script types, forms and names today; you should be quick to identify them within the extracted directory. Python uses "setup.py", nvidia or ati uses "*.run" (am not sure if it still does today), etc.
It is best if you will post here what your archive contained for the package. In that way there are many people here to give you accurate instructions.
Thanks for your help. I got the tar unpackaged and found a readme which took me through the the rest of the install. Unfortunately it turned out to not be what I needed, once again. One day I'll find what I am looking for....
What are you looking for then? With a community this big as LinuxQuestions changes are that someone has already found that what you seek and will be able to point you in the right direction.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.