LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   where to install programs? (https://www.linuxquestions.org/questions/linux-newbie-8/where-to-install-programs-499114/)

va1damar 11-06-2006 09:41 AM

where to install programs?
 
What is the convention concerning the location of programs installed by the user? I'm trying to install mysql, but I'm not sure where i should keep all the stuff I got out of the tarball.

weibullguy 11-06-2006 10:32 AM

Technically you could install software wherever you want. There is, of course, a standard. If you use your distro's package manager, things may not be installed IAW the standard, but they'll be managed such that things shouldn't break. That said, typically the /usr, /usr/local, or /opt hierarchies should be used.

pixellany 11-06-2006 02:34 PM

The conventions vary widely, but the rule is universal: You can install your SW anywhere you want. For example, some people have a bin directory in /home/username.

Linux--being a cousin to Unix--has many of the same quirks and incomprehensibilities--much of which is traceable to being designed from the ground up as a multi-user system.

I am hoping to learn more about Gobo Linux, which throws out all the Unix baggage and takes a fresh approach.
www.gobolinux.org

cs-cam 11-06-2006 06:53 PM

What distro are you using? Save yourself a lot of headaches and use the package manager rather than install anything manually. Generally it's unnecessary and distros put a lot of work in the package manager for a reason.

Hitboxx 11-06-2006 07:12 PM

@cs-cam: Completely agree.

@va1damar: And since your just starting out, always try to search for a package as much as possible using package manager or commands(if your familiar with). In this way you won't have to go through 'dependancy hell'. Once you're mature enough to differentiate between two packages, you can experiment all you want.

Good Luck :)

aldimeneira 11-06-2006 09:38 PM

Either use the package manager (which has is "responsible for where to install software") if available or install it on /home/username/bin if it's a tar (...like Firefox).

arubin 11-07-2006 03:55 AM

I try and use packages where possible. However occasionally I need to compile software. I find the document at FHS incomprehensible. For instance what does this mean?

Quote:

The /usr/local hierarchy is for use by the system administrator when installing software locally. It needs to be safe from being overwritten when the system software is updated. It may be used for programs and data that are shareable amongst a group of hosts, but not found in /usr.

Locally installed software must be placed within /usr/local rather than /usr unless it is being installed to replace or upgrade software in /usr
I also noticed this on the linuxpackages site where I pick up most of my slackware packages.

Quote:

We have been asked why we do not allow packages installed into /usr/local. First since we are building packages for others to use we must approach it the same as the distributions do. This means that area is for the user and packages should not install there since we are making them for many.

va1damar 11-07-2006 07:59 AM

I'm using suse 10.1 which makes the package manager YaST2 I guess. I've installed mysql and apache using the software->software management tool. But in each case all I know is that it's installed somewhere (in a standard location I suppose, but that's no help to me yet). It would be really nice to have a log of install locations.

Also, I haven't yet figured out how to use yast to install something i download as a tarball (apache & mysql were on the installation cds). But with your recommendations I think I'll look into yast a little more.

my.dying.bride 11-08-2006 04:09 AM

Quote:

Originally Posted by va1damar
I'm using suse 10.1 which makes the package manager YaST2 I guess. I've installed mysql and apache using the software->software management tool. But in each case all I know is that it's installed somewhere (in a standard location I suppose, but that's no help to me yet). It would be really nice to have a log of install locations.

Also, I haven't yet figured out how to use yast to install something i download as a tarball (apache & mysql were on the installation cds). But with your recommendations I think I'll look into yast a little more.

The tarballs are in general sourcecode. Untar it and look for a file called : config/Config/configure/Configure.
This is an exectuable script checking your system before it makes (compiles) the source.
Run the configure script from your shell (CD your shell to the folder of the configure script) and if the config part goes well, meaning no warnings or error stops, you can just type : make , make install.

The Makefile incluedes at lot info about the installation , but no need to change it unless you have some very specific preferances.

PS! Other tarballs, like fexample opera browser or Java, has a file called normally somethingn like install.sh. This is a setup program that will normally prompt you about this and that and should also be started from the shell

makyo 11-08-2006 09:11 AM

Hi.
Quote:

Originally Posted by va1damar
...
Also, I haven't yet figured out how to use yast to install something i download as a tarball (apache & mysql were on the installation cds). But with your recommendations I think I'll look into yast a little more.

If you can find checkinstall, it may help you with installable items that are not in package format. It's best to have the package manager know about applications that are installed. It can be problematical to remove all components manually ... cheers, makyo
Code:

checkinstall -- generate packages by tracking installation scripts


All times are GMT -5. The time now is 04:11 PM.