oneliners/bash/aptinfo.sh

6 lines
269 B
Bash
Executable File

#!/bin/bash
# shows `apt-cache show`information for a package that given binary belongs to (relative path)
#apt-cache show $(apt-file search $(readlink -f "$(which $1)") | cut -d ":" -f 1)
apt-cache show $(dpkg -S $(readlink -f "$(which $1)") | cut -d ":" -f 1)
exit 0