Sample Header Ad - 728x90

Why do Debian Packages install some binaries in /usr/bin and others in /bin when in fact /bin is a symlink to /usr/bin?

0 votes
1 answer
191 views
Let me take example of the Debian package coreutils on Ubuntu 22.04. If we inspect the list of files installed by coreutils:
$ cat /var/lib/dpkg/info/coreutils.list | less
We see that there are some binaries that are dropped into /bin and some into /usr/bin. However, due to /usr merging, the /bin directory is essentially a symlink to /usr/bin. What is the rationale behind shipping some binaries in /bin and others in /usr/bin when the directories are going to be usr merged anyways upon installation?
Asked by Harsh (165 rep)
Feb 17, 2025, 09:36 PM
Last activity: Feb 20, 2025, 07:54 PM