From 0eb1ec6d8658fe2dd1aec154d66dd2c04c749062 Mon Sep 17 00:00:00 2001 From: zeus Date: Tue, 31 Aug 2021 17:18:38 +0200 Subject: [PATCH] aptinfo --- bash/aptinfo.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 bash/aptinfo.sh diff --git a/bash/aptinfo.sh b/bash/aptinfo.sh new file mode 100755 index 0000000..734e237 --- /dev/null +++ b/bash/aptinfo.sh @@ -0,0 +1,4 @@ +#!/bin/bash +# shows `apt-cache show`information for a package that given binary belongs to (relative path) +apt-cache show $(apt-file search $(which $1) | cut -d ":" -f 1) +exit 0