Skip to content
Speed up pacman updates via pre-downloading packages
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
prep4ud
prep4ud.testing1
prep4ud.testing2

README.md

prep4ud

A bash script for faster pacman updates. Pre-downloads up-datable packages.
This script was created to avoid the pitfalls of a "partial upgrade" (1) IE: (pacman -Syuw ) (2).
Does NOT perform unattended system update. Requires user to manually run updates (pacman -Syu).

(1): https://wiki.archlinux.org/index.php/System_maintenance#Partial_upgrades_are_unsupported
(2): https://www.reddit.com/r/archlinux/comments/9gy7gk/-/e683akq/
And: https://www.reddit.com/r/archlinux/comments/9hs7c0/pacman_updates_downloadonly_script_without/

The script copies pacman databases to /tmp, checks for system update availability, creates update list, downloads updates to /var/cache/pacman/pkg/ without installing anything. It then prints a report named 'current date' to ~/Desktop/prep4ud.dir/.

I've set up prep4ud to auto run daily via cron.

Screenshot prep4ud: https://cody-learner.github.io/prep4ud.html
Report prep4ud: https://cody-learner.github.io/prep4ud-report.html




UPDATE INFO:

UPDATE Feb 13, 2019: Eliminated separate package cache. Updated packages are downloaded to pacman package cache /var/cache/pacman/pkg/. Use pacman -Syu to update.

UPDATE Nov 16, 2018: Added a separate package cache to prevent potential issues between updates. Added "No updates available" capability.

You can’t perform that action at this time.