In my Linux machine I have boost libraries (libboost*.so files) in all of the above directories. I am wondering what is the difference between them. Can I remove the duplicate so files?
Asked
Active
Viewed 1.2k times
6
motam79
- 480
- 2
- 9
- 17
-
**[man hier](http://man7.org/linux/man-pages/man7/hier.7.html)** – C0deDaedalus Aug 27 '18 at 02:32
1 Answers
8
The differences : man hier
It displays short and to the point information about almost every file/folder in the Linux File System Hierarchy. And for the files/folders you want to know, It says :
/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.
And for the file/folder /usr/lib/x86_64-linux-gnu, I (am not sure, but) think this :
/usr/lib/x86_64-linux-gnu
Files associated with locally installed programs for 64-bit architecture`
Can I remove the duplicate so files ?
I'm not sure what exactly consequences may be of removing the duplicates but would advise not do so. Read this.
/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.
Hope you noticed read-only data and shareable.
Feel free to add in more details.
C0deDaedalus
- 2,500
- 1
- 10
- 22