mirror of
https://github.com/theupriser/steamify-cachyos-live-iso.git
synced 2026-10-02 15:10:26 +02:00
👷 cleanup & use every package installed to perform query
This commit is contained in:
2 files changed
+6
-10
No files matched your search
@@ -2,11 +2,11 @@
|
||||
|
||||
_clean_packages(){
|
||||
local _leave_these_packages="base\nbase-devel\ncachyos-keyring\ncachyos-mirrorlist\ncachyos-v3-mirrorlist\ncachyos-hello\ngrub\nefibootmgr\n"
|
||||
local _packages_to_remove=($(comm -23 <(pacman -Qqt | sort) <({ pacman -Qqg base-devel; printf $_leave_these_packages; } | sort -u)))
|
||||
local _packages_to_remove=("$(comm -23 <(pacman -Qq | sort) <({ pacman -Qqg base-devel; printf "%s" $_leave_these_packages; } | sort -u))")
|
||||
local xx
|
||||
# @ does one by one to avoid errors in the entire process
|
||||
# * can be used to treat all packages in one command
|
||||
for xx in ${_packages_to_remove[@]}; do pacman -Rsc "$xx" --noconfirm; done
|
||||
for xx in "${_packages_to_remove[@]}"; do pacman -Rsc "$xx" --noconfirm; done
|
||||
|
||||
rm /etc/sddm.conf || true
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user