[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg --get-selections question



Maria Rodriguez said:
> Hi,
>
> 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?
>
> After that, I figured I could do something along the lines of 'apt-get
> install `cat packages.txt`' or something to get all of the packages to be
> the same on both computers.


dpkg --get-selections >selections
dpkg --set-selections <selections

apt-get dselect-upgrade

thats what I do, theres another method, similar, has an extra argument
in the dpkg command, but I forget what it was(check the archives)

nate





Reply to: