/usr/local/lib*
lee
lee at yun.yagibdah.de
Mon Jul 22 12:31:11 UTC 2013
Reindl Harald <h.reindl at thelounge.net> writes:
> Am 22.07.2013 13:41, schrieb lee:
>> Reindl Harald <h.reindl at thelounge.net> writes:
>>> no, but "yum remove \*i686\*" should kill them :-)
>>
>> So I have removed the i686 packages:
>>
>> | [root at yun:~]$ yum list installed |grep 686
>> | texlive-url.noarch 3:svn16864.3.2-0.1.fc19 installed
>> | [root at yun:~]$ du -hs /usr/lib/
>> | 582M /usr/lib/
>> | [root at yun:~]$ find /usr/lib/ -type f | wc -l
>> | 14060
>> | [root at yun:~]$
>> `----
>> /usr/lib/ should be empty now. Why is it not?
>
> says who?
Since libraries are supposed to be in /usr/lib64 on 64bit systems and
the packages that provide 32bit software are removed, there aren't any
libraries left to go into /usr/lib.
> http://www.pathname.com/fhs/pub/fhs-2.3.html
> /lib : Essential shared libraries and kernel modules
>
> http://www.pathname.com/fhs/pub/fhs-2.3.html#PURPOSE11
> http://www.pathname.com/fhs/pub/fhs-2.3.html#REQUIREMENTS5
As I said, only 10 of over 14000 files in /usr/lib fullfill these
requirements.
> http://www.pathname.com/fhs/pub/fhs-2.3.html#SPECIFICOPTIONS7
>
>> And why are the kernel modules not in /usr/lib64/modules/?
Well ok, kernel modules aren't libraries.
> because the FHS says it and after UsrMove anything
> in /lib was merged to /usr/lib
>
> lrwxrwxrwx 1 root root 7 2013-05-30 23:36 bin -> usr/bin
> lrwxrwxrwx 1 root root 7 2013-05-30 23:36 lib -> usr/lib
> lrwxrwxrwx 1 root root 9 2013-05-30 23:36 lib64 -> usr/lib64
> lrwxrwxrwx 1 root root 8 2013-05-30 23:36 sbin -> usr/sbin
That was a very bad idea:
"/bin contains commands that may be used by both the system
administrator and by users, but which are required when no other
filesystems are mounted"[1]
The /usr file system is usually on its own partition. Implicitly
creating a requirement to have it on the same partition as the root fs
is bad, and /bin should not be under /usr. It violates the FHS, see
[2]: /usr/bin should hold "most user commands", and considering [1],
that excludes commands "which are required when no other filesystems are
mounted" unless you want dupes.
[1]: http://www.pathname.com/fhs/pub/fhs-2.3.html#BINESSENTIALUSERCOMMANDBINARIES
[2]: http://www.pathname.com/fhs/pub/fhs-2.3.html#THEUSRHIERARCHY
--
Debugger entered--Lisp error: (error "C-c C-c can do nothing useful at
this location")
More information about the users
mailing list