Tag Archives: apt-file

Search files with apt-file

Here is a quick tip if you ever need to find out, which Debian package has the file x or y.

To find your files you can use apt-file. First, install it. Then update apt-file caches – so it can go through files and search:

sudo apt-get -y install apt-file

sudo apt-file update

And finally search a file. Let´s say that I want to see, where is the file called something.json.

sudo apt-file search something.json

The above command will take a little while and if all goes well you should have your results when the command is complete.