4 ms·
> I'm still waiting for /opt/local to show up... Wait no more, MacPorts installs to this by default.
by saagarjha 7y ago
> I'm still waiting for /opt/local to show up...
Wait no more, MacPorts installs to this by default.
- cosarara 7y agoI wonder what the next step is then. /local? /usr/opt?
- JdeBP 7y ago/command * http://cr.yp.to/slashcommand.html http://cr.yp.to/slashcommand.html (-:
- Spivak 7y agoRedHat actually has /var/opt and /etc/opt which, while odd, makes some sense since /opt is a free-form /usr and still needs variable space and configs.
- rhizome 7y agoand which preserves the functional separations between the hier elements and doesn't require changing any backup procedures.
- protomyth 7y agoWell, /usr/local is set as its own partition on OpenBSD so it can have different mounting instructions. b1c4a5629703d4fd.d /usr ffs rw,nodev 1 2 b1c4a5629703d4fd.e /usr/local ffs rw,wxallowed,nodev 1 2 I tend to do the evil thing of always creating an /opt just for my stuff that is system wide. So, I do have an /opt/bin/ so I don't mess with the system or package level stuff.
- Fnoord 7y agoAnd then there was Nix(OS). [1] > A big implication of the way that Nix/NixOS stores packages is that there is no /bin, /sbin, /lib, /usr, and so on. Instead all packages are kept in /nix/store. (The only exception is a symlink /bin/sh to Bash in the Nix store.) Not using ‘global’ directories such as /bin is what allows multiple versions of a package to coexist. Nix does have a /etc to keep system-wide configuration files, but most files in that directory are symlinks to generated files in /nix/store. [Insert obligatory xkcd quote about competing standards.] [1] https://nixos.org/nixos/about.html https://nixos.org/nixos/about.html
- saghm 7y ago> The only exception is a symlink /bin/sh to Bash in the Nix store I only briefly tried out Nix a while back, but doesn't /usr/bin/env also exist (to facilitate shebangs)?
- Fnoord 7y agoI run Unstable, not Stable, but yes it exists.
- marcosdumay 7y agoThe idea of Nix is that you have a huge datastore somewhere with views, where a possible view is a Unix OS. So those differences are no more relevant than saying your data is kept on disk sectors too.
- squiggleblaz 7y agoreally? I have only used nix - not nixos - but when I'm using nix, i can tell you, that i don't see a huge datastore somewhere with views. The programs that i use that have been installed with nix just uses exclusively absolute paths. So if bash wants to load up a library, it doesn't say "dearest operating system, please provide me with a convenient version of libdl.so.2". Instead, it says "dearest operating system, please provide me with a convenient version of /nix/store/blahblahblah-glibc-2.27/lib/libdl.so.2". I do have a profile folder, symlinked as ~/.nix-profile where some programs I've specifically requested to install are symlinked, but that's not sufficient and all encompassing - every program there still refers to the hardcoded /nix/store locations. I guess they also launch programs from $PATH. But I've never seen or heard of a pseudo-FHS nix view of the store.
- marcosdumay 7y agoWell, ok, I've only used nixos, so I don't know all the details. But on the case of nix, your view is the set of packages you installed. It can not be a full Unix for obvious reasons, and the dependencies are not part of the view (so the packages themselves are not installed in a normal Unix).
- Spivak 7y agoTo be fair there is a useful difference between /usr and /opt being that /usr and /usr/local are prefixes so software designed to be installed in a prefix can commingle sanely. /opt is for programs that don’t follow any sort of FHS and need to be installed in their own world. Google Chrome and Mathematicia come to mind. /opt/local makes total logical sense as the counterpart to /usr/local.
- jt2190 7y agoI think software collections for Fedora/RHEL/CentOS may do this too. https://www.softwarecollections.org/en/ https://www.softwarecollections.org/en/ Edit: No, I’m wrong. /opt/<provider name>/... https://www.softwarecollections.org/en/docs/guide/#sect-The_File_System_Hierarchy https://www.softwarecollections.org/en/docs/guide/#sect-The_...