How To Find The Package That Provides A File (Installed Or Not) On Ubuntu, Debian Or Linux Mint

There are multiple ways of finding out to which package a particular file belongs to, on Ubuntu, Debian or Linux Mint. This article presents two ways of achieving this, both from the command line (apt-file and dpkg).