[Gllug] CFengine and dpkg/dselect

Rich Walker rw at shadow.org.uk
Fri Mar 18 14:55:05 UTC 2005


Russell Howe <rhowe at wiss.co.uk> writes:

> On Wed, Mar 16, 2005 at 05:02:06PM +0000, Rich Walker wrote:
>> echo docbook-ebnf install | dpkg --set-selections
>> 
>> does what you'd expect, so that's that sorted :->
>
> --set-selections should accept the output of --get-selections IIRC so
> you could use that as a guide.
>
> You can use this to get the same package set installed on multiple
> machines, for example...
>
> machine1# dpkg --get-selections > ~/selections
> machine1# scp ~/selections machine2: # Ignoring the ssh as root...
> machine2# dpkg --set-selections < ~/selections
> machine2# dselect

This I've done in the past. In this case, of course, I just want to add
a limited list of packages to the existing list. 

echo fred install | dpkg --set-selections

seems to do the job.

cheers, Rich.

-- 
rich walker         |  Shadow Robot Company | rw at shadow.org.uk
technical director     251 Liverpool Road   |
need a Hand?           London  N1 1LX       | +UK 20 7700 2487
www.shadow.org.uk/products/newhand.shtml
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list