slackbuilds/what-s_installed.sh
Gwenhael Le Moine 52a67d9e1d
launch from anywhere
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2023-03-07 14:02:45 +01:00

14 lines
318 B
Bash
Executable file

#!/bin/bash
cd $(dirname $0) || exit 1
PKGs=$(ls /var/adm/packages/ | sed 's|^\(.*\)-.*-.*-.*$|\1|')
for cat in a ap d l lua n wayland xap y; do
cd $cat
for p in $(ls -1); do
echo $PKGs | grep -q " $(echo $p | tr -d /) " && echo -n "✓: " || echo -n "❌: "
echo "$cat/$p"
done | sort
cd ..
done