You are not logged in.

#1 2007-07-27 17:55:45

sinister99
Member
Registered: 2007-04-10
Posts: 136

Schedule download of updated packages?

My ISP recently changed their "fair access policy" and I now have extremely limited bandwidth.  Is there any way I can schedule pacman to download upgradeable packages between 3 and 6 am (when the policy is exempt) so I can install them at my leisure?

Offline

#2 2007-07-27 18:33:09

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Schedule download of updated packages?

Just add "pacman -Syuw" to crontab.

Offline

#3 2007-07-27 19:10:57

sinister99
Member
Registered: 2007-04-10
Posts: 136

Re: Schedule download of updated packages?

The problem is that pacman always asks if you want to continue downloading the packages; it seems to require user intervention, otherwise i could just set that up.

Offline

#4 2007-07-27 19:32:47

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: Schedule download of updated packages?

Pacman has the option "--noconfirm", which does exactly what you'd expect.

Offline

#5 2007-07-27 19:37:36

loserMcloser
Member
From: Canada
Registered: 2004-12-15
Posts: 130

Re: Schedule download of updated packages?

I think the following should work. Do

pacman -Sup | grep "ftp://" > /tmp/pkg_url_file

manually so you can answer pacman's questions. Then schedule

wget -c -i /tmp/pkg_url_file -P /var/cache/pacman/pkg

to run during your download window. The only possible problem with this is that any packages which have been updated between the two commands will not be downloaded.

If you're confident in letting pacman decide the answer to questions, you could just add "--noconfirm" to what lucke suggested.

Last edited by loserMcloser (2007-07-27 19:39:09)

Offline

#6 2007-07-27 19:47:06

sinister99
Member
Registered: 2007-04-10
Posts: 136

Re: Schedule download of updated packages?

loserMcloser wrote:

I think the following should work. Do

pacman -Sup | grep "ftp://" > /tmp/pkg_url_file

manually so you can answer pacman's questions. Then schedule

wget -c -i /tmp/pkg_url_file -P /var/cache/pacman/pkg

to run during your download window. The only possible problem with this is that any packages which have been updated between the two commands will not be downloaded.

If you're confident in letting pacman decide the answer to questions, you could just add "--noconfirm" to what lucke suggested.

That sounds good, I'll give it a try.  Thanks for the help guys.

Offline

Board footer

Powered by FluxBB