As in the title. Neither dpkg -S /usr/bin/less
nor apt-file search /usr/bin/less
produces anything useful.
Does it mean that there's a bug or that less really doesn't come from any package?
(In case you're wondering why I need to know the answer, I find that the less
is an old version 487 instead of 530 that has a feature I want.)
$ which less
/usr/bin/less
$ dpkg -S /usr/bin/less
dpkg-query: no path found matching pattern /usr/bin/less
$ apt-file search /usr/bin/less
colorized-logs: /usr/bin/lesstty
libcss-lessp-perl: /usr/bin/lessp
node-less: /usr/bin/lessc
That's because
/usr/bin/less
is a symbolic link:The latter is provided by package
less
The symbolic link is one of several created by the
postinst
script during package configuration:(The same script installs
less
as the defaultpager
underupdate-alternatives
.)