You are not logged in.

#1 2013-06-07 20:39:29

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

Have updates download automatically

Here is a cool way to get new updates downloaded into your pacman cache:

/usr/bin/pacupdate:

# /usr/bin/bash

pacman "$@" --dbonly --dbpath /tempPac # or wherever you want it

just call

pacupdate -Syu [packages you want cached]

and then new files will be downloaded into your pacman cache folder, and can be used when you call pacman, but wont affect your system in any way.

You could make a cron script to run this every now and again to fetch updates

Use at your own risk...


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

#2 2013-06-07 23:44:43

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Have updates download automatically

Mod note: This thread spawned a discussion that was split off to another thread: https://bbs.archlinux.org/viewtopic.php?id=164785
Read that if it is not clear what this script does or why it is useful.

That discussion also lead to this variation of it:

#!/bin/bash
mkdir tmpdb
ln -sf /var/lib/pacman/local -T tmpdb/local
pacman -Syuw --dbpath tmpdb "$@"

Last edited by Xyne (2013-06-07 23:50:40)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB