Earlier quoted context omitted.
Arch Linux. $ pacman -Ql imagemagick | grep bin imagemagick /usr/bin/ imagemagick /usr/bin/Magick++-config imagemagick /usr/bin/MagickCore-config imagemagick /usr/bin/MagickWand-config imagemagick /usr/bin/animate imagemagick /usr/bin/compare .... You may also enjoy: $ pacman -Qo /usr/bin/{display,convert} /usr/bin/display is owned by imagemagick 7.1.0.16-1 /usr/bin/convert is owned by imagemagick 7.1.0.16-1
For reference (mostly for me as I need this from time to time), you can do the same on dpkg-based distros with $ dpkg -L imagemagick-6.q16 | grep bin /usr/bin /usr/bin/animate-im6.q16 /usr/bin/compare-im6.q16 /usr/bin/composite-im6.q16 /usr/bin/conjure-im6.q16 /usr/bin/convert-im6.q16 /usr/bin/display-im6.q16 /usr/bin/identify-im6.q16 /usr/bin/import-im6.q16 /usr/bin/mogrify-im6.q16 /usr/bin/montage-im6.q16 /usr/bin/…
you can use realpath for this
dpkg -S $(realpath /usr/bin/convert)
and you can ignore the path to it entirely with dpkg -S $(realpath $(which convert))