You are not logged in.

#1 2012-08-13 15:22:01

Derechef
Member
Registered: 2010-07-02
Posts: 13

Set the package list to a specific date

I would like to use Archlinux on virtual machines with an install script that install some packages.
I would like to do a pacman -Syu in the install script but then the virtual machines will have different versions of the packages depending on the installation date.
Is there a way to do something like : pacman -Syu <date> where the package list is synced as if I had done pacman -Syu on <date> ?

If such a command does not exist, is there another simple way to do a script that install a list of packages with specific versions ?

Offline

#2 2012-08-13 16:27:18

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

Re: Set the package list to a specific date

Not a simple way, no. Why not just install all your vms, and then run -Syu in all of them? That will bring them all up to date.

Offline

#3 2012-08-13 17:35:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Set the package list to a specific date

Offline

#4 2012-08-20 15:30:48

Derechef
Member
Registered: 2010-07-02
Posts: 13

Re: Set the package list to a specific date

karol wrote:

Is it a daily snapshot of the official repository ? If so, that would be perfect smile

Custom local repository seems to be another solution.

Offline

#5 2012-08-20 16:01:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Set the package list to a specific date

Yes, ARM is a mirror that keeps old packages.
You may want to keep the packages locally in a custom local repo in case ARM goes off-line without a warning.

Custom local repo is mainly for packages that are not in official repos or you want them compiled in a different way. For the stock ones, I think ARM is enough.

Offline

#6 2012-08-21 21:45:35

Derechef
Member
Registered: 2010-07-02
Posts: 13

Re: Set the package list to a specific date

Ok, thank you !

Offline

Board footer

Powered by FluxBB