You are not logged in.

#1 2016-10-04 14:43:09

sie
Member
From: Latvia
Registered: 2010-06-30
Posts: 33

Downloadupdates.sh — download pkgs in cron without changing pacman db

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

#2 2016-10-04 17:36:42

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: Downloadupdates.sh — download pkgs in cron without changing pacman db

Doesn't your script make partial upgrades a very easy thing to do and unknowingly so? You know that is unsupported in Arch.

Offline

#3 2016-10-05 07:58:57

sie
Member
From: Latvia
Registered: 2010-06-30
Posts: 33

Re: Downloadupdates.sh — download pkgs in cron without changing pacman db

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

#4 2016-10-05 20:01:13

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: Downloadupdates.sh — download pkgs in cron without changing pacman db

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

#5 2016-10-05 20:05:52

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: Downloadupdates.sh — download pkgs in cron without changing pacman db

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

Board footer

Powered by FluxBB