This means that apt-file download a package database from the internet and looks for the file there.
This means that this file I don’t need have installed.
apt-file search file
apt-cache search package_name
dpkg -S /path/to/file
dpkg -l name_package
Command command locate is part of mlocate package.
Before first use, you need create database from root account.
updatedb
Then you can use, for example like this with grep command
locate file_name | grep /bin
If you are using firejail, the path of file may be different
which file_name
If you are using firejail, the path of file may be different
type file_name
apt policy package name