From c2410a435e549e50a447e4dce84e9f82a892b3d5 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Sat, 22 Jan 2022 11:08:32 +0100 Subject: [PATCH] helper script to list "active" SlackBuilds --- what-s_installed.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 what-s_installed.sh diff --git a/what-s_installed.sh b/what-s_installed.sh new file mode 100755 index 00000000..39ea575f --- /dev/null +++ b/what-s_installed.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +for cat in a ap d l lua n wayland xap y; do + cd $cat + for p in $(ls -1); do + ls /var/adm/packages/ | grep -q $(echo $p | tr -d /) && echo -n "✓: " || echo -n "❌: " + echo "$cat/$p" + done | sort + cd .. +done