View previous topic :: View next topic |
Author |
Message |
SDD701 n00b
Joined: 18 Feb 2023 Posts: 23
|
Posted: Fri Jan 24, 2025 3:24 pm Post subject: Why symlink everything in /usr but not the opposite? |
|
|
Hi. Why /bin is a symlink to /usr/bin but not opposite way?
1. Would that work for single user mode?
2. I've read somewhere (maybe fhs) that /usr purpose to be mounted secondary. Why not make /usr/lib -> /lib? If /usr fails to mount I would have bash or cd binary at least in bin
3. I've been told on IRC that new standard is everything on /usr. Is it documented somewhere or just a practical trend?
Thank you for your time |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10714 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Jan 24, 2025 3:47 pm Post subject: |
|
|
For background, go read The Case for the /usr Merge, and maybe some of the linked articles. There's some controversy, but then again when isn't there? Thereafter, if you still have questions, feel free to ask.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
SDD701 n00b
Joined: 18 Feb 2023 Posts: 23
|
Posted: Fri Jan 24, 2025 4:41 pm Post subject: |
|
|
I've read the article with the linked pages and got it now, but still one thought remaining.
Why not link /usr/local/bin and others to /usr too? Seems like it exist only because of size restrictions of first UNIXes like with / /usr split |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23037
|
Posted: Fri Jan 24, 2025 5:14 pm Post subject: |
|
|
/usr/local is for local administrators to install things. If /usr/local/bin -> /usr/bin existed, how would administrators install local software without colliding with the package manager? |
|
Back to top |
|
|
SDD701 n00b
Joined: 18 Feb 2023 Posts: 23
|
Posted: Fri Jan 24, 2025 5:41 pm Post subject: |
|
|
Hu wrote: | /usr/local is for local administrators to install things. If /usr/local/bin -> /usr/bin existed, how would administrators install local software without colliding with the package manager? |
into /opt? |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23037
|
Posted: Fri Jan 24, 2025 6:52 pm Post subject: |
|
|
At least on Gentoo, /opt is often used by the package manager for prebuilt binaries from upstream, such as rust-bin, firefox-bin, etc. |
|
Back to top |
|
|
|