diff options
| author | Kyren223 <ulmliad223@gmail.com> | 2024-07-14 11:13:13 +0300 |
|---|---|---|
| committer | Kyren223 <ulmliad223@gmail.com> | 2024-07-14 11:13:13 +0300 |
| commit | b436963816aff88e19c82f72a12f8e09c78351b8 (patch) | |
| tree | cb8771266793ea5509baef61541f3b6c05cbe54c /scripts/zypper_rm_unused.sh | |
| parent | 667ce7984dac3a2c80c6e55857c0ae20617a96ce (diff) | |
Scripts: added directory, includes nvim tmux undercurl fix
Diffstat (limited to 'scripts/zypper_rm_unused.sh')
| -rwxr-xr-x | scripts/zypper_rm_unused.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
