This commit is contained in:
Vladislav Nepogodin committed 2022-05-08 16:21:15 +04:00
1 parent e279eb5207
commit e13f2b1439
1 file changed
+1 -1
@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
_clean_packages() { _clean_packages() {
local _leave_these_packages="base\nbase-devel\ncachyos-keyring\ncachyos-hello\ngrub\nefibootmgr\noctopi\n" local _leave_these_packages="base\nbase-devel\ncachyos-keyring\ncachyos-hello\ngrub\nefibootmgr\noctopi\nca-certificates\nca-certificates-mozilla\nca-certificates-utils\npacman\narchlinux-keyring\n"
local _packages_to_remove=($(comm -23 <(pacman -Qq | sort) <({ pacman -Qqg base-devel; pacman -Qqg cachyos; printf $_leave_these_packages; } | sort -u))) local _packages_to_remove=($(comm -23 <(pacman -Qq | sort) <({ pacman -Qqg base-devel; pacman -Qqg cachyos; printf $_leave_these_packages; } | sort -u)))
local xx local xx
# @ does one by one to avoid errors in the entire process # @ does one by one to avoid errors in the entire process