On Thu, Apr 03, 2003 at 10:19:36PM -0800, Maria Rodriguez wrote:
> I have a production machine which I would like to duplicate in a test
> lab.  I was just going to get the output of 'dpkg --get-selections'
> and see if there were some way to parse it to just get the package
> names.  I'm no programmer and can't script worth a darn, so does
> anyone have any suggestions on how to go about doing such a thing?

Don't parse it. Just take the raw output and save it in, say, a file
called 'selections' which you transport to the target machine somehow.
Then 'dpkg --set-selections < selections' on the target machine and
'dselect install'.

Cheers,

-- 
Colin Watson                                  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to