Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why symlink everything in /usr but not the opposite?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
SDD701
n00b
n00b


Joined: 18 Feb 2023
Posts: 23

PostPosted: Fri Jan 24, 2025 3:24 pm    Post subject: Why symlink everything in /usr but not the opposite? Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10714
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Jan 24, 2025 3:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
SDD701
n00b
n00b


Joined: 18 Feb 2023
Posts: 23

PostPosted: Fri Jan 24, 2025 4:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23037

PostPosted: Fri Jan 24, 2025 5:14 pm    Post subject: Reply with quote

/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
View user's profile Send private message
SDD701
n00b
n00b


Joined: 18 Feb 2023
Posts: 23

PostPosted: Fri Jan 24, 2025 5:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23037

PostPosted: Fri Jan 24, 2025 6:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum