You are not logged in.
It's here! https://gist.github.com/siers/fca0f6f66 … 2b6e884966
I like upgrading quick and I do not shy away from wasting disk space!
Duplicate checkupdates, save the patch in file patch1 and patch the copy with patch downloadupdates < patch1.
# crontab -l | grep downloadupdates
0 * * * * ~root/downloadupdates
a & ☭
Offline
Doesn't your script make partial upgrades a very easy thing to do and unknowingly so? You know that is unsupported in Arch.
Offline
Why? It doesn't update the package index so you unless you do -Sy, you will get the packages that should be consistent with your system.
The worst thing this script does is download too much crap you potentially won't use, though personally I'm okay with that.
Last edited by sie (2016-10-05 08:02:33)
a & ☭
Offline
Because it runs "pacman -Sy" followed by "pacman -Suw", this does what you would expect it to. But what happens if I don't upgrade before installing new software? I might pull in something that's not consistent with the packages I have installed.
Offline
There seems to be some misunderstanding here -- that script uses a separate database in a temporary directory, just like checkupdates. The difference is that it also downloads packages to the package cache, which is /var/cache/pacman/pkg in either case. If those packages are not part of the regular database, you're not at risk of doing a partial upgrade.
Last edited by Alad (2016-10-05 20:06:39)
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline