/ usr / lib / usr / local / lib和/ usr / lib / x86_64-linux-gnu有什么区别?


0

在我的Linux机器libboost*.so上,上述所有目录中都有boost库(文件)。我想知道它们之间有什么区别。我可以删除重复的so文件吗?


Answers:


3

差异:man hier

它显示了Linux File System Hierarchy中几乎每个文件/文件夹的简短信息。对于您想知道的文件/文件夹,它说:

/usr/lib
          Object libraries, including dynamic libraries, plus some executables which
          usually are not invoked directly. More complicated programs may have whole
          subdirectories there.

/usr/local/lib
          Files associated with locally installed programs.

对于文件/文件夹/ usr / lib / x86_64-linux-gnu,我(不确定,但是)认为:

/usr/lib/x86_64-linux-gnu
          Files associated with locally installed programs for 64-bit architecture`

我可以删除重复的so文件吗?

我不确定删除重复项的确切后果,但建议不要这样做。读这个。

 /usr    This directory is usually mounted from a separate partition.
          It should hold only shareable, read-only data, so that it can
          be mounted by various machines running Linux.

希望您注意到只读数据并且可共享

随时添加更多详细信息。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.