Difference /usr/bin and /usr/local/bin ?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
MochiMoppel
Posts: 1137
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 18 times
Been thanked: 372 times

Difference /usr/bin and /usr/local/bin ?

Post by MochiMoppel »

I noticed that in BW64 two of my applications are preinstalled as
/usr/local/bin/mm_view
and
/usr/bin/mm_screenliner

Since these are single file scripts, which can be run from anywhere, I never bothered to publish pets and thus decide on a proper location.
However if I would publish e.g. screenliner, where should it go? I'm fine with /usr/bin, but since mm_view, a much more complex application, now is in /usr/local/bin , I wonder if these 2 possible locations are used with a clear concept in mind or if in Puppy they are used arbitrarily. Reading https://refspecs.linuxfoundation.org/FH ... 04s09.html doesn't help me to understand the current usage in Puppy, only increases my suspicion that some stuff in /usr/local/bin doesn't belong there. Can somebody point me to Puppy's policy, if there is one?

User avatar
user1234
Posts: 413
Joined: Sat Feb 26, 2022 5:48 am
Location: Somewhere on earth
Has thanked: 154 times
Been thanked: 88 times

Re: Difference /usr/bin and /usr/local/bin ?

Post by user1234 »

I think this Unix & Linux Stack Exchange answer may help you:
https://unix.stackexchange.com/a/8658/540879

Any further doubts? Ask here :thumbup: !

PuppyLinux 🐾 gives new life to old computers ✨

Clarity
Posts: 3367
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1387 times
Been thanked: 446 times

Re: Difference /usr/bin and /usr/local/bin ?

Post by Clarity »

Hello @MochiMoppel ...Yes, that is a good question of which is PUPPY's version of Linux's library use. And dont forget the question in concert with this is for /bin and /opt mission in PET/program use, as well.

Lastly, since many/most/some Puppyland distros are based upon some mainstream distros adapted for forum use, is the answer: "It depends on the distro OR is Puppy's standard for PETs-programs intends to be an extension of what the mainstreams, each, have standardize on."

Curious, too.

User avatar
mikewalsh
Moderator
Posts: 5670
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 610 times
Been thanked: 1745 times

Re: Difference /usr/bin and /usr/local/bin ?

Post by mikewalsh »

@MochiMoppel :-

You may be aware of this, you may not.......but much of the current Linux layout (certainly prior to the 'usrmerge' nonsesnse) dates all the way back to the early days of UNIX. Dennis Ritchie's system only had two very small hard drives, neither of which was large enough to contain the entire system.......so he had to spread things out across both drives, Essential system stuff went on the first, then moments later the rest - the whole of /usr, and all the config stuff - was loaded-in from drive number 2.

(Which doesn't answer your query. I don't think there IS a 'standard' Puppy policy regarding all this. If there is, I've never come across it.)

Mike. ;)

Puppy "stuff" ~ MORE Puppy "stuff" ~ ....and MORE! :D
_______________________________________________________

Image

User avatar
puppy_apprentice
Posts: 662
Joined: Tue Oct 06, 2020 8:43 pm
Location: land of bigos and schabowy ;)
Has thanked: 4 times
Been thanked: 108 times

Re: Difference /usr/bin and /usr/local/bin ?

Post by puppy_apprentice »

Demystifying Linux: The purpose of /bin, /usr/bin and /usr/local/bin
https://dev.to/kcdchennai/demystifying- ... albin-5a8e

User avatar
user1234
Posts: 413
Joined: Sat Feb 26, 2022 5:48 am
Location: Somewhere on earth
Has thanked: 154 times
Been thanked: 88 times

Re: Difference /usr/bin and /usr/local/bin ?

Post by user1234 »

I was just viewing a YT video, where I found this flowchart:

Screenshot_20240129_163025.jpg
Screenshot_20240129_163025.jpg (106.26 KiB) Viewed 156 times

I thought this maybe relevant to this topic.

PuppyLinux 🐾 gives new life to old computers ✨

User avatar
MochiMoppel
Posts: 1137
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 18 times
Been thanked: 372 times

Re: Difference /usr/bin and /usr/local/bin ?

Post by MochiMoppel »

Thanks to everyone who responded. I'm aware that an Internet search will produce numerous explanations and interpretations of the Linux directory structure. I'm also aware that Puppy abides by the generally accepted directory structure (e.g. no subdirectories in /usr/bin) and that there is a certain degree of freedom how to make use of the structure. However my questions was: Has Puppy established rules on how to use the /usr/bin and /usr/local.bin directories? Not the end of the world if there are none.

Post Reply

Return to “Users”