[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Is there an alternative filesystem hierarchy that could be adapted to Debian.



On Thu, Mar 11, 2021 at 12:35:44PM -0600, David Wright wrote:
> Thanks. So really the complaint is just that dpkg -S operates on the
> paths of files as packaged, whereas type -p yields canonical paths,
> I assume.

It'll search through the directories in PATH, in order, and use the
first one that contains the program.  That may or may not be the
"canonical" one, depending on how PATH is set.

The other half is that the packages themselves install programs in
their traditional FHS locations, not their UsrMerge locations.

unicorn:~$ dpkg -L coreutils | grep mkdir
/bin/mkdir
/usr/share/man/man1/mkdir.1.gz

On a non-merged system, the package system's location (/bin/mkdir) and
the PATH-searched location (/bin/mkdir) will match.  But on a merged
system, both /usr/bin/mkdir and /bin/mkdir are valid paths to the command.
If /usr/bin is first in PATH, then the PATH search will give /usr/bin/mkdir,
which won't match where the package system thinks the program is.


Reply to: