[plug] debian/ubuntu package list copy for new install

Tomasz Grzegurzko tomasz89 at gmail.com
Tue Oct 10 15:19:03 WST 2006


On 10/10/06, Michael Holland <myk at myk.id.au> wrote:
> On Tue, 10 Oct 2006, Daniel Foote wrote:
>
> > Try "dpkg --get-selections > my-list" on the original PC.
> >
> > Take or otherwise get the file onto the new PC, then:
> >
> > dpkg --set-selections < my-list
> >
> > Not having done this before, I don't think that will automatically
> > install the packages. Something like "apt-get install" after the above
>
> I couldn't figure out how to do it with apt-get, but following the
> examples section of the dpkg man page, dselect->install seems to be
> working. Thanks!
> _______________________________________________
> PLUG discussion list: plug at plug.org.au
> http://www.plug.org.au/mailman/listinfo/plug
> Committee e-mail: committee at plug.linux.org.au
>

All installed packages will have ^ii (in regular expression terms).
You could grep for that, awk it through to print the package name (arg
2).
There's always "another way" in Linux; that's just how I do it.

Tomasz



More information about the plug mailing list