Skip to content

Instantly share code, notes, and snippets.

@spaced
Created December 31, 2022 11:13
Show Gist options
  • Save spaced/0ac95132cd45a855ea8a85f0342f6db9 to your computer and use it in GitHub Desktop.
Save spaced/0ac95132cd45a855ea8a85f0342f6db9 to your computer and use it in GitHub Desktop.
zypper prefetch packages service on boot
#
[Unit]
Description=Downloads artifacts for dist upgrade
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/zypper dup -y -d --auto-agree-with-licenses
[Install]
WantedBy=multi-user.target
@spaced
Copy link
Author

spaced commented Dec 31, 2022

how to install:

curl -sSL https://gist.github.com/spaced/0ac95132cd45a855ea8a85f0342f6db9/raw/558313a8ad6b416b917da984843c8f87dcb48319/zypper-dup-download.service | sudo tee /etc/systemd/system/zypper-dup-download.service && \
sudo systemctl daemon-reload && \
sudo systemctl enable zypper-dup-download.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment