Page 1 of 1

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

Posted: Mon Jan 22, 2024 2:16 am
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?


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

Posted: Mon Jan 22, 2024 7:01 am
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: !


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

Posted: Mon Jan 22, 2024 9:24 am
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.


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

Posted: Mon Jan 22, 2024 11:36 am
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. ;)


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

Posted: Fri Jan 26, 2024 6:38 pm
by puppy_apprentice

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


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

Posted: Mon Jan 29, 2024 11:05 am
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 201 times

I thought this maybe relevant to this topic.


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

Posted: Tue Jan 30, 2024 1:08 pm
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.