Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
i've noticed that even though i give --prefix=/usr/local
it only applies to binary files mostly
and many files are copied to
/usr/share instead of /usr/local/share
/usr/lib instead of /usr/local/lib
can i force it to use /usr/local directory instead?
so that i don't have to reinstall programs after upgrading to mand8.3 or so..
my assumption is if i keep /usr/local directory in seperate partition..
and install everything under it
i can safely use programs that i installed after system upgrade..
correct me if i'm wrong with this
I always install under /usr/lcoal/app_name or /opt/app_name which some would sa voliates Linux filesystem standard
./coonfigure --prefix=/usr/local/app_name
It depends when you want it to start, for instance
only the root filesytem is mounted in single usre mode,
but then you don't need or want apache to start in single
user mode.
Last edited by pickledbeans; 07-08-2002 at 12:56 AM.
What package type?
tar.gz?
RPM?
RPMs have a pre-determined install path usually.That's if you use a package manager.Command line use of RPM you can change the install path with the
--prefix <path> option,I believe.
Tar.gz or .tgz you put where you want,usually /usr/local/
lynch
/usr/local/ do exactly the same that C:/program files/ in Windoze.
You're SUPPOSE to install all in this directory but If you do, you quickly loss yourself in your own computer
Well I hate to drag "Filesystem Hierarchy Standard" into this but if you want to be picky they should go under /opt.
OK, I love dragging LFS into it
3.12 /opt : Add-on application software packages
3.12.1 Purpose
/opt is reserved for the installation of add-on application software packages.
A package to be installed in /opt must locate its static files in a separate /opt/<package> directory tree, where <package> is a name that describes the software package.
The directories /opt/bin, /opt/doc, /opt/include, /opt/info, /opt/lib, and /opt/man are reserved for local system administrator use. Packages may provide "front-end" files intended to be placed in (by linking or copying) these reserved directories by the local system administrator, but must function normally in the absence of these reserved directories.
Programs to be invoked by users must be located in the directory /opt/<package>/bin. If the package includes UNIX manual pages, they must be located in /opt/<package>/man and the same substructure as /usr/share/man must be used.
Package files that are variable (change in normal operation) must be installed in /var/opt. See the section on /var/opt for more information.
Host-specific configuration files must be installed in /etc/opt. See the section on /etc for more information.
No other package files may exist outside the /opt, /var/opt, and /etc/opt hierarchies except for those package files that must reside in specific locations within the filesystem tree in order to function properly. For example, device lock files must be placed in /var/lock and devices must be located in /dev.
Distributions may install software in /opt, but must not modify or delete software installed by the local system administrator without the assent of the local system administrator.
BEGIN RATIONALE
Well I hate to drag "Filesystem Hierarchy Standard" into this but if you want to be picky they should go under /opt.
When it comes to "standards", they are only as good as the extent to which they are adopted .
The best thing to do is install a package where it wants to go, and follow any "read me" files looking for path problems and the like.
The alternative is to spend the rest of your life playing with your system instead of using it, and trying to follow any number of evolving standards instead of enjoying your Linux freedom. You need to figure out who is the master and what is the tool !!
Linux was intended to be OS for developers designed by developers!!!
As far as freedom concerned, some ppl only see free part of it and it sounds for them as in beer.
:-)
pickledbeens I guess the comment about FHS was about us getting into discussion some time earlier, oh well it still exists and if you don't build LFS your initial setup is FHS compatible even if you use Solaris.
Originally posted by neo77777 Linux was intended to be OS for developers designed by developers!!!
As far as freedom concerned, some ppl only see free part of it and it sounds for them as in beer.
:-)
pickledbeens I guess the comment about FHS was about us getting into discussion some time earlier, oh well it still exists and if you don't build LFS your initial setup is FHS compatible even if you use Solaris.
Your comment about intended use of Linux, applays to Unix in gerneral, iti wasn't developed as a commerical product at ATT
My final comment (for now) about LHS comes directory from the soruce:
Filesystem Hierarchy Standard
3.12 /opt : Add-on application software packages
3.12.1 Purpose
/opt is reserved for the installation of add-on application software packages.
A package to be installed in /opt must locate its static files in a separate /opt/<package> directory tree, where <package> is a name that describes the software package.
The directories /opt/bin, /opt/doc, /opt/include, /opt/info, /opt/lib, and /opt/man are reserved for local system administrator use. Packages may provide "front-end" files intended to be placed in (by linking or copying) these reserved directories by the local system administrator, but must function normally in the absence of these reserved directories.
Programs to be invoked by users must be located in the directory /opt/<package>/bin. If the package includes UNIX manual pages, they must be located in /opt/<package>/man and the same substructure as /usr/share/man must be used.
Package files that are variable (change in normal operation) must be installed in /var/opt. See the section on /var/opt for more information.
Host-specific configuration files must be installed in /etc/opt. See the section on /etc for more information.
No other package files may exist outside the /opt, /var/opt, and /etc/opt hierarchies except for those package files that must reside in specific locations within the filesystem tree in order to function properly. For example, device lock files must be placed in /var/lock and devices must be located in /dev.
Distributions may install software in /opt, but must not modify or delete software installed by the local system administrator without the assent of the local system administrator.
BEGIN RATIONALE
Now I ask you based on this definition are apps that Apache, MySQL [opt]ional? If so where should they be installed? Optional meaning not required fo the operation of the OS?
As far as Solaris goes the clients I have've support, have alway placed apps like Oracle under their own directory struction. And the same goes for "site specific application"
Last edited by pickledbeans; 07-08-2002 at 04:12 PM.
by the way
i think i read somewhere
/usr/local is reserved for the installation of add-on application software packages.
is this wrong?
anyway, back to the original question,
i prefer clean install when i upgrade mandrake,
that means i have to give up /usr directory (but not /usr/local)
so if i could force programs to install files under
/usr/local/lib/a-program/
/usr/local/share/a-program/
along with /usr/local/a-program/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.