I have found a file (say "badfile") in /usr/bin
which do not seem to belong to any package installed on my system:
$ dpkg -S /usr/bin/badfile
dpkg-query: no path found matching pattern /usr/bin/badfile
$ apt-file search /usr/bin/badfile
# nothing is returned
I think I want to remove this file or move it to /usr/local/bin
. This being said, presumably, there could be other such files. Is there a way to list all files in a certain repository (here, /usr/bin/
) that the Debian apt
package manager does not know about?
/etc/ssh/sshd_config
comes to mind) that aren't part of any dpkg filelist, but instead are created on-the-fly by a package's pre/post installation script.