#!/bin/bash set -u # Find package that owns a certain file grep "$1" /var/lib/dpkg/info/*.list