diff options
-rwxr-xr-x | bin/pacman-offline | 6 | ||||
-rwxr-xr-x | systemd/pacman-offline | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/bin/pacman-offline b/bin/pacman-offline index 4a28dac..534a0a9 100755 --- a/bin/pacman-offline +++ b/bin/pacman-offline @@ -26,7 +26,7 @@ while getopts 'fhry' opt; do REBOOT=1 ;; y) - pacman -Sy + pacman --sync --refresh ;; esac done @@ -41,13 +41,13 @@ fi rm -f /system-update # check for available updates -if [ "$(pacman -Sup | wc -l)" -eq 0 ]; then +if [ "$(pacman --sync --sysupgrade --print | wc -l)" -eq 0 ]; then echo "No updates available." exit 0 fi # download packages -pacman -Suw --noconfirm +pacman --sync --noconfirm --sysupgrade --downloadonly # enable system update ln -sf /var/cache/pacman/pkg /system-update diff --git a/systemd/pacman-offline b/systemd/pacman-offline index 5fecdb6..aab687b 100755 --- a/systemd/pacman-offline +++ b/systemd/pacman-offline @@ -11,11 +11,11 @@ fi rm -f /system-update # install updates -pacman -S --noconfirm --needed archlinux-keyring -pacman -Su --noconfirm +pacman --sync --noconfirm --needed archlinux-keyring +pacman --sync --noconfirm --sysupgrade # clean up package cache -pacman -Sc --noconfirm +pacman --sync --noconfirm --clean # reboot systemctl reboot |