Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Hi! Thats right, another linux noob...
My questions are fairly simple: is there any default directory to which software should be installed, something corresponding to windows' program files? If not, is there a RECOMMENDED directory i should istall stuff into?
Any help appreciated greatly.
Forgot to add: ive just inst. mandrake 10.0.
Thanks for the swift response, you lost me in the first sentence though. Compiling from source? (i had a feeling this wouldnt be easy...)
What about the home directory/-ies of the user/-s? Would that be as good a place as the above mentioned?
the home directory of users is usually where you store your files, kind of like window's my documents. That is where you put your pictures, movies, text files, etc. Usually programs get installed to /usr/bin/. So for a noob it might be a good idea to cd (change directory) /usr/bin and do ls (list contents) to see the programs. Then you can do man programname to see what it is all about.
in linux you have several ways to install programs. You can use a package manager to install programs or compile from source. A lot of distros use RPM (Red hat Package Manager) So a program with a .rpm extension can be installed with rpm. (in a terminal type man rpm) to learn more about it. I believe Debian has it way so the files would be programname.deb. (Not too familar with Debian) This is the easier of the two methods but usually the program is packaged with default settings.
to compile from source you download the source code usually as programname.tar.gz or programname.tar.bz2 you need to use tar to decompress these files. doing man tar in a terminal will give you info on that. Along with man gunzip and man bunzip2. his will create a directory usually the program name that you need to change to. then to compile it you would need to do ./configure, make, and then as root make install. during the ./configure stage you can add a bunch of options to configure the program the way you need it to be configured. In the directory of the program do ls can you can usally find text files like README and INSTALL to help you out. just use cat README to view. It is a little daunting at first for someone coming from windows where all you need to do to install is keep clicking next. But once you get used to it it is easy as cake. A lot of beginner linux books go over installing so i'd suggest picking one up or googling it.
by the way all my instuctions refer to doing it from a terminal. But i believe there are GUI (graphical user interface) programs to deal with RPM files. So i hope i am not confusing you too much.
Hi guys,
I get many answers for this question. Some say that the default installation directory is /usr/local/, while others say its /usr/bin/ . Can anyone clarify which version is correct?
Hi guys,
Hi and welcome to LQ. I get many answers for this question. Some say that the default installation directory is /usr/local/, while others say its /usr/bin/ . Can anyone clarify which version is correct?
For software you compile from source its /usr/local. Take a look at FHS for more details.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.