LWN.net Logo

/usr/share

/usr/share

Posted May 18, 2006 21:58 UTC (Thu) by rfunk (subscriber, #4054)
Parent article: Debian multiarch support

"The proposed location for all architecture-independent binaries is
under /usr/share."

I hope that refers to executables that truly run on *any* supported
architecture, generally only scripts. /usr/share would be a very bad
place for x86/x86-64 binaries that won't run on PPC.


(Log in to post comments)

/usr/share

Posted May 19, 2006 15:58 UTC (Fri) by jzbiciak (✭ supporter ✭, #5246) [Link]

It's probably better to say "architecture independent files." When I hear the word "binary" referring to a file I usually think "executable." I think what they mean here are all the supporting files for an application, which may include image files, documentation files, and other fairly static things.

/usr/share

Posted May 19, 2006 16:07 UTC (Fri) by rfunk (subscriber, #4054) [Link]

Yes, that's pretty much what /usr/share is intended for, but the fact
that it was mentioned seems to imply a change of some sort.

/usr/share

Posted May 19, 2006 16:24 UTC (Fri) by jzbiciak (✭ supporter ✭, #5246) [Link]

Well, it appears a bunch of otherwise arch-neutral stuff ends up in places like /var/lib currently. On my Ubuntu box, for instance, there's a bunch of Firefox files in /var/lib/mozilla-firefox, and they appear at first blush to be arch-neutral--they're all .rdf and .txt files pretty much. All the doc files, though, are in /usr/share/doc/mozilla-firefox/.

/usr/share

Posted May 19, 2006 16:44 UTC (Fri) by rfunk (subscriber, #4054) [Link]

Yes, /var is for files that change a lot during runtime. /usr only
changes when you upgrade the OS (or pieces of it).

This is all explained in the Filesystem Hierarchy Standard.
http://www.pathname.com/fhs/

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds