You are not logged in.

#1 2006-01-19 12:36:37

Jacek Poplawski
Member
From: Poland
Registered: 2006-01-10
Posts: 736
Website

Cache

Packages which I am downloading from repositories are cached on disk.
Let's say I now want to install Arch Linux on another computer.
How to avoid downloading?
How can I use already downloaded packages when doing -S ?

Offline

#2 2006-01-19 12:43:39

rezza
Member
From: Edinburgh, uk
Registered: 2004-07-08
Posts: 237

Re: Cache

just copy the appropriate .tar.gz files from /var/cache/pacman/pkg/

EDIT: typo

Offline

#3 2006-01-19 14:25:00

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Cache

Well, it's not quite that simple. Copying over the tarballs will allow you to do pacman -A on each package, but that does not check and install dependencies the way -S does.

There are a couple of relevant wiki pages here and here.

Offline

#4 2006-01-19 15:36:55

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Cache

You're wrong. If you copy the tarballs to /var/cache/pacman/pkg/ (on the new system) then pacman -S will look there before it tries to download them.
So the suggested solution will work.

Offline

#5 2006-01-19 16:08:22

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Cache

Nice one, brain - I didn't know that. smile

Thanks.

Offline

Board footer

Powered by FluxBB