Wenn man eine Datei sucht die in einem deb Paket enthalten ist, kann man das CLI Tool apt-file verwenden. Ansonsten gibt es noch die Möglichkeit online auf den entsprechenden Seiten der Repositories zu suchen (z. B. https://www.debian.org/distrib/packages).

Da ich diesen Weg aber ziemlich umständlich finde zeige ich hier kurz wie das mit apt-file funktioniert.

Zunächst muss man apt-file installieren:

$ apt-get install apt-file

Anschließend muss apt-file Index Dateien herunterladen:

$ apt-file update

Wenn apt-file fertig mit Download ist kann man wie folge nach Dateien suchen:

$ apt-file find nginx.conf
cardstories: /usr/share/cardstories/conf/nginx.conf
fcgiwrap: /usr/share/doc/fcgiwrap/examples/nginx.conf
gunicorn: /usr/share/doc/gunicorn/examples/nginx.conf.gz
munin: /usr/share/doc/munin/examples/nginx/munin.nginx.conf
nginx-common: /etc/nginx/nginx.conf
nginx-doc: /usr/share/doc/nginx-doc/examples/nginx.conf
pcp: /var/lib/pcp/pmdas/nginx/nginx.conf
python-cyclone: /usr/share/doc/python-cyclone/examples/helloworld/nginx.conf
thin: /usr/share/doc/thin/examples/myapp.nginx.conf
unicorn: /usr/share/doc/unicorn/examples/nginx.conf.gz
zabbix-frontend-php: /usr/share/doc/zabbix-frontend-php/examples/nginx.conf