Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3260

Installation • What is recommended way to install packages locall

$
0
0
I was going through the Debian Mailing list for Debian port to x86-64 architecture. In this I came across this thread from a few months ago about installing packages locally, i.e. not from the Debian repositories or other repositories. This way apt/dpkg will not update the packages. In this thread to install the package the directory /usr/local/ is used rather than /opt directory. According to the Linux File system hierarchy the purpose of /opt directory is to
/opt is reserved for the installation of add-on application software packages.
....
....
The use of /opt for add-on software is a well-established practice in the UNIX community. The System V Application Binary Interface [AT&T 1990], based on the System V Interface Definition (Third Edition), provides for an /opt structure very similar to the one defined here.

The Intel Binary Compatibility Standard v. 2 (iBCS2) also provides a similar structure for /opt.
But for the directory /usr/local the Linux file system hierarchy has this say
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.


So is there a recommendation, on what to use in cases like it given in the thread listed above? Is there a perceived benefit of using /usr/local over /opt and vice versa? Why use /usr/local over /opt ?

Statistics: Posted by DebianFox — 2025-01-28 07:02 — Replies 3 — Views 112



Viewing all articles
Browse latest Browse all 3260

Trending Articles