From b436963816aff88e19c82f72a12f8e09c78351b8 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sun, 14 Jul 2024 11:13:13 +0300 Subject: Scripts: added directory, includes nvim tmux undercurl fix --- scripts/zypper_rm_unused.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 scripts/zypper_rm_unused.sh (limited to 'scripts/zypper_rm_unused.sh') diff --git a/scripts/zypper_rm_unused.sh b/scripts/zypper_rm_unused.sh new file mode 100755 index 0000000..98a0f2e --- /dev/null +++ b/scripts/zypper_rm_unused.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# Copied from somewhere on the internet +zypper packages --unneeded | awk -F'|' 'NR==0 || NR==1 || NR==2 || NR==3 || NR==4 {next} {print $3}' > list +while read p; do zypper info $p && zypper se --requires $p && zypper rm $p; done < list +rm -rf list -- cgit v1.3.1