[arch-general] Replicating a package set on a new machine

Paul M. Foster paulf at quillandmouse.com
Sun Dec 5 21:56:12 UTC 2021


On 12/5/21 4:36 PM, René Neumann wrote:
> To generate the list, I'd propose:
> 
> pacman -Qeq > list.txt
> 
> -e : only explicitly installed packages (deps get installed anyways...)
> -q : output better suited for scripts
> 
> 
> And on the other machine, just do the obvious:
> 
> pacman -S - < list.txt
> 
> (Note the single '-', specifiying to read the list of packages from stdin).
> 
> - René
> 
> Am 05.12.21 um 22:29 schrieb Paul M. Foster via arch-general:
>> Folks:
>>
>> Assume I've installed a bunch of packages manually on machine A. Now I 
>> want to install those same packages-- not manually-- on machine B. I 
>> can have pacman tell me what packages are installed on machine A. Now, 
>> can I take the package list from machine A and, in an automated way, 
>> have pacman then install those packages on machine B? If so, how?
>>
>> Paul
>>

Outstanding. That looks like it would work. Many thanks.

Paul


More information about the arch-general mailing list