On Wed, 2004-06-16 at 21:39, Tom Allison wrote:
> I have two machines that I would like to have the second one installed
> with the same list of packages as the first.
>
> I know I can find out what is installed by running
>
> dpkg -l | grep ^ii | awk '{print $2}' > installed_list
>
> But how can I use that list as a starting point to install the same
> packages onto another machine?
>
> Is it:
>
> dpkg --set-selections < installed_list
>
> or something else?
Try this:
On the source machine:
dpkg --get-selections | grep -e install -e hold | grep -v deinstall > pkgs
On the destination machine:
dpkg --set-selections < pkgs
HTH
--
greg@gregfolkert.net
REMEMBER ED CURRY! http://www.iwethey.org/ed_curry
Novell's Directory Services is a competitive product to Microsoft's
Active Directory in much the same way that the Saturn V is a competitive
product to those dinky little model rockets that kids light off down at
the playfield. -- Thane Walkup
Attachment:
signature.asc
Description: This is a digitally signed message part