mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-02 04:37:49 +02:00
12 lines
287 B
Bash
Executable File
12 lines
287 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Remove all the named packages from the system if they're installed (otherwise ignore).
|
|
# omarchy:args=<packages...>
|
|
# omarchy:requires-sudo=true
|
|
|
|
for pkg in "$@"; do
|
|
if pacman -Q "$pkg" &>/dev/null; then
|
|
sudo pacman -Rns --noconfirm "$pkg"
|
|
fi
|
|
done
|