LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-04-2005, 09:00 AM   #1
djc
Member
 
Registered: Mar 2004
Posts: 54

Rep: Reputation: 15
where to install programs?


I have suse pro 9.1 (purchased - so I could get the books with it). The book stated different places for installing programs (its not with me so path may not be exact). It mentioned the /opt directory for third party applications. So ok, sounds like 'Program Files' to a windows user. But then is also said to install programs into a directy under /usr or usr/local (thats where I'm not sure and the book is not with me).

So I'm left confused. What should go where? I understand there are several variables involved like, should the program be available to all users of the system, or just a particular user. And I have read how *nix apps are often split up between different directorys (/bin /lib /share etc..)

I just need to solidify this whole subject so I can start installing apps and learning more about linux. This post is to seek help towards that purpose... I have a specific problem installing a specific app but I will create a seperate post for that... It was during the process of installing this app that I realized this is an area I NEED to fully understand. In this particular case I think the issue is X related anyway.. it will be in a seperate post.

any help would be GREATLY appreciated.
 
Old 03-04-2005, 09:03 AM   #2
cydd420
LQ Newbie
 
Registered: Nov 2002
Location: Indianapolis, IN
Distribution: RH
Posts: 14

Rep: Reputation: 0
try this web site

http://www.linuxbase.org/
 
Old 03-04-2005, 09:41 AM   #3
djc
Member
 
Registered: Mar 2004
Posts: 54

Original Poster
Rep: Reputation: 15
thanks for the reply cydd420, however I don't know where to go on the site. I browsed around a bit but could not find anything.
 
Old 03-04-2005, 10:31 AM   #4
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
It doesn't matter, the application will get installed in the default directory, which should be /usr/local, binaries in /usr/local/bin and your documentations go to /usr/local/doc. If you want to put the application in /opt instead of /usr/local use the prefix...

./configure --prefix=/opt
 
Old 03-04-2005, 12:18 PM   #5
djc
Member
 
Registered: Mar 2004
Posts: 54

Original Poster
Rep: Reputation: 15
1) is the behavior you described for all or some installation methods? like rpm packages or shell script installations, or both or other?

2) is it safe to asume then that if I'm ever prompted with a location option by an installation routine that I should specify /usr/local as the destination (or 'prefix' as I'm begining to realize is the term for linux)

3) are these 'default' locations user definable? And are they the same across linux distributions?

thanks for the info so far.
 
Old 03-04-2005, 10:46 PM   #6
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
Quote:
1) is the behavior you described for all or some installation methods? like rpm packages or shell script installations, or both or other?
Most not all. Like Kde puts it sources in /opt, but if you were to install Firefox, by default, it would put its sources in /usr/local unless you told it to put them in /opt, which would be --prefix=/opt. It doesn't really matter where they go, /usr/local or /opt. It just makes your system cleaner, easier to uninstall files, patch.. etc by putting them in the /opt dir. Your binaries will automatically get installed in /usr/local/bin, your docs in /usr/local/docs, system wide config files in /etc ..etc. Unless you specify otherwise, which you really have no reason to because most of those directories are in your PATH and need to be in your path or they wont work.

Quote:
2) is it safe to asume then that if I'm ever prompted with a location option by an installation routine that I should specify /usr/local as the destination (or 'prefix' as I'm begining to realize is the term for linux)
Like I said above, it doesn't matter. The /opt dir was made to make maintenance on your system easier to the admin. by consolidating third party packages in a single directory.

Quote:
3) are these 'default' locations user definable? And are they the same across linux distributions?
Well you'll have to be root in order to install to either dir. /opt or /usr/local, but if you're the admin. then yes.

*EDIT*
Hmm, I could have sworn I read that you were installing RPMs, so i deleted the rpm commands. Just another one of my brain farts...

Last edited by Linux~Powered; 03-04-2005 at 10:52 PM.
 
Old 03-04-2005, 11:36 PM   #7
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802

Rep: Reputation: 157Reputation: 157
RPMs for SuSE will install in their default directories. Most things that use the Loki installer will install to /usr/local assuming that you are installing as root. For installation of of source code by compiling and installation you do a make install and it will go into its default directory.

SuSE is one of the few distros that use /opt. So some programs,... like KDE and Gnome, for example, will install to /opt instead of /usr.
 
Old 03-05-2005, 02:27 AM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I put most stuff I compile into /usr/local but some third party packages like netbeans install into /opt. Most packages provided by a distro go into /usr, but Suse and Slackware put KDE in /opt by default.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't install g++ so I can't compile and install any programs musicmaniac414 Linux - Software 12 02-06-2008 09:31 PM
can't install some programs khh80 Linux - Software 2 08-02-2005 09:43 PM
How do you install programs? Sir Loin Linux - Software 16 03-15-2005 12:31 PM
where to install programs to CrotchCricket Linux - Newbie 2 10-26-2004 06:42 AM
Cannot install programs garbo73 Mandriva 16 09-24-2003 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:14 PM.

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