slackbuilds/what-s_installed.sh

15 lines
318 B
Bash
Raw Normal View History

#!/bin/bash
cd $(dirname $0) || exit 1
2022-03-02 21:29:57 +01:00
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
2023-03-06 10:42:03 +01:00
echo $PKGs | grep -q " $(echo $p | tr -d /) " && echo -n "✓: " || echo -n "❌: "
echo "$cat/$p"
done | sort
cd ..
done