Filesystem Hierarchy Standards (FHS) and certain file locations
Paul Menzel
pmenzel at molgen.mpg.de
Wed Sep 6 13:55:55 UTC 2017
Dear LibreOffice folks,
Following up on bug report #100724 [1], I have two question about the
location of some files.
First, the license and README files.
```
/usr/lib/libreoffice/NOTICE
/usr/lib/libreoffice/LICENSE.html
/usr/lib/libreoffice/LICENSE.fodt
/usr/lib/libreoffice/LICENSE
/usr/lib/libreoffice/CREDITS.fodt
/usr/lib/libreoffice/readmes
/usr/lib/libreoffice/readmes/README_en-US
/usr/lib/libreoffice/readmes/README_de
```
Shouldn’t those be put under `/usr/share/doc/libreoffice/`?
Second, I wonder why the “real” binaries are put under `/usr/lib` and
not `/usr/bin/`? `/usr/lib/libreoffice/program` is normally not in a path.
```
$ ls -l /usr/bin/libreoffice
lrwxrwxrwx 1 root system 36 Sep 4 12:55 /usr/bin/libreoffice ->
/usr/lib/libreoffice/program/soffice
$ ls -l /usr/lib/libreoffice/program/
[…]
-rw-r--r-- 1 root system 50 Sep 4 12:54 redirectrc
-rwxr-xr-x 1 root system 24984 Sep 4 12:36 regmerge
-rwxr-xr-x 1 root system 13616 Sep 4 12:36 regview
drwxr-xr-x 2 root system 4096 Sep 4 12:54 resource
-rwxr-xr-x 1 root system 63 Aug 24 23:39 sbase
-rwxr-xr-x 1 root system 63 Aug 24 23:39 scalc
-rwxr-xr-x 1 root system 63 Aug 24 23:39 sdraw
-rwxr-xr-x 1 root system 13150 Aug 24 23:39 senddoc
drwxr-xr-x 2 root system 4096 Sep 4 12:55 services
-rw-r--r-- 1 root system 8690 Sep 4 12:38 services.rdb
-rw-r--r-- 1 root system 34 Sep 4 12:54 setuprc
drwxr-xr-x 2 root system 22 Sep 4 12:54 shell
-rwxr-xr-x 1 root system 66 Aug 24 23:39 simpress
-rwxr-xr-x 1 root system 63 Aug 24 23:39 smath
-rwxr-xr-x 1 root system 6051 Sep 4 12:34 soffice
-rwxr-xr-x 1 root system 7408 Sep 4 12:48 soffice.bin
-rw-r--r-- 1 root system 453 Sep 4 12:54 sofficerc
-rwxr-xr-x 1 root system 65 Aug 24 23:39 swriter
drwxr-xr-x 2 root system 42 Sep 4 12:54 types
-rw-r--r-- 1 root system 57362 Sep 4 12:36 types.rdb
-rwxr-xr-x 1 root system 41024 Sep 4 12:48 ui-previewer
-rwxr-xr-x 1 root system 1508 Aug 24 23:39 uno
-rwxr-xr-x 1 root system 99120 Sep 4 12:37 uno.bin
-rw-r--r-- 1 root system 17092 Aug 24 23:39 uno.py
-rw-r--r-- 1 root system 10956 Aug 24 23:39 unohelper.py
-rwxr-xr-x 1 root system 1390 Aug 24 23:39 unoinfo
-rwxr-xr-x 1 root system 3039 Aug 24 23:39 unopkg
-rwxr-xr-x 1 root system 7456 Sep 4 12:48 unopkg.bin
-rw-r--r-- 1 root system 239 Sep 4 12:35 unorc
-rwxr-xr-x 1 root system 7736 Sep 4 12:35 uri-encode
-rw-r--r-- 1 root system 319 Sep 4 12:54 versionrc
drwxr-xr-x 9 root system 108 Sep 4 12:54 wizards
-rwxr-xr-x 1 root system 7800 Sep 4 12:35
xid-fullscreen-on-all-monitors
-rwxr-xr-x 1 root system 60048 Sep 4 12:36 xpdfimport
```
The FHS Wikipedia article describes `/usr/lib` as below [2].
> /usr/lib – libraries for the binaries in /usr/bin/ and /usr/sbin/.
Kind regards,
Paul
[1] https://bugs.documentfoundation.org/show_bug.cgi?id=100724
[2] https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
More information about the LibreOffice
mailing list