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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hi I am a super newbie at Linux. I am just confused on how to install software in Linux. I normally download my tar.gz and tar files in a folder named "MyDownloads". So to install I navigate to MyDownloads folder and unzip them gzip -d file.tar.gz tar -xvf file.tar.. So this is where I get confused. Now that every software that I unzip is in "MyDownloads" and I dont want to install all software in that folder. I dont think this is the right place to put them. So where is the right place to unzip a tar file at? Unlike Windows everything you installed is under Program Files. Is there a folder like "Program Files that I can unzip all the software to?
One of the great beauties of *nix is you can do most anything you want. It is very convenient in many ways to compile in your home directory (or MyDownloads or whatever). Since you have read and write permissions there. The step make install will put the necessary files where they need to go.
That being said, the "correct" place to compile software is usually /usr/local. That is fine, although usually to write to /usr/local you need to be root.
Also, you're making much work for yourself both unzipping and then extracting files from the tar. Check out the man page for tar. Adding -z unzips gzipped files, and -j unzips bzip2 files. So the way I would compile on your system would be comething like newapp.tar.gz would be:
tar -zxvf /home/me/MyDownloads/newapp.tar.gz
The MyDownloads is probably the best place to download and untar you tarballs.
Then you only need to su to root before the "make install" phase. This will copy the program, library files and manpages where they need to go, usually under /usr or /usr/local. After the "make install" phase, you can delete the directory that you compiled the source from, and keep just the tarball. If there are quite a few tarballs building up over time, you can back them up to cdrom in case you need to reinstall later.
I do the same thing, except, I call my directory "downloads" instead.
Its better to use your distro package manager to install software.
But, if you want to compile and install from source code, you can put it in say, /home/foobar/installs directory. You can specify with --prefix option to ./configure as to where you want to install the binaries as well. But, all these are for developers and testers.
There is one advantage to having the source. Some packages have a "make pdf" or "make ps" target to generate printable, or at least more readable versions of the documentation. I have downloaded source RPMs of select packages that I have already installed to be able to print out the documentation. The "Gawk: Effective Awk Programming" book is excellent. You may be able to get this from a gawk-doc package. The regular awk manual from the gawk package source is also very good.
thank everyone for replying and looking. Now I know how to install new softwares. But I just downloaded Email-Send-2.11.tar.gz from Cpan.org and I have Perl installed already few months ago. I am sorry but I am confused again and please correct me if i am wrong. Email-Send-2.11.tar.gz is not an individual software. It is one of Perl's modules right? So I just downloaded that and extracted in usr/local however I can't get it to work and have this message Can't locate Email/Send.pm in @INC
So I assume that i must have extracted in the wrong place. What should I do and where should I extract in situation like this?