dpkg -S path/to/file
gives the the name of the package containing a file, and dpkg -s package-name
gives you the name of the maintainer. dpkg -S path/to/file
gives the the name of the package containing a file, and dpkg -s package-name
gives you the name of the maintainer.In the end I switched all my servers to Ubuntu. It's been good and I love PPAs.
The bug was rather quickly marked as confirmed, with absolutely no updates for several years, even though the root cause was known. As far as I know, it still hasn't been fixed.
The bug remains to this day.
Oh, so much this. The crappiness of bug reporting for Debian has meant that I stopped trying to report issues years ago.
In the case of config files, this only seems to work sometimes -- maybe if it wasn't modified by the user? Or if it came from a package directly, and wasn't generated from its {pre,post}inst scripts?
$ dpkg -S /etc/hosts
dpkg-query: no path found matching pattern /etc/hosts
$ dpkg -S /etc/resolv.conf
dpkg-query: no path found matching pattern /etc/resolv.conf
$ dpkg -S /etc/bash_completion
bash-completion: /etc/bash_completionI suspect with that I can probably find the repository, so that I can check whether the comment has already been fixed, then I can work out how to submit a patch or bug.
I am a developer so every now and then I make a concerted effort to diagnose a bug, then fix it, then do a pull request.
However, I do admit I usually give up before getting to the point of submitting something useful...
#!/bin/bash
set -e
set -u
if ! [[ ${1:-} ]]; then
echo please provide a file
fi
dpkg -s $(dpkg -S "$1" | cut -d: -f 1) | grep Maintainer