<div dir="ltr">There is a much easier way to do this.<br><br>Synaptic has a feature that creates the installation script for you.<br>In Synaptic under File->Generate package download script.<br><br>You can also use the File->Save markings and File->Read markings to do the about same thing.<br>
If you want to mark all the packages in a specific machine just do File->Save markings and tick the box that says Save full state, not only changes.<br><br>I've used the second technique and it works great.<br><br>
Dave.<br><br><br><br><br><div class="gmail_quote">On Tue, Sep 9, 2008 at 09:31, Shahar Dag <span dir="ltr"><<a href="mailto:dag@cs.technion.ac.il" target="_blank">dag@cs.technion.ac.il</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font size="2" face="Arial">
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><font size="3" face="Times New Roman">Hi</font></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><font size="3" face="Times New Roman"> </font></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><font size="3" face="Times New Roman">I am installing Ubuntu 8.04 workstation (i386) on
2 different PCs (different hardware).</font></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><font size="3" face="Times New Roman">I want the 2 PCs to be installed the
same</font></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><font size="3" face="Times New Roman"> </font></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><font size="3" face="Times New Roman">On the first pc</font></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><font size="3" face="Times New Roman">I installed Ubuntu from the CD and then using
"synaptic package manager" I installed a long list of packages</font></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><font size="3" face="Times New Roman">To get the list in a file I used:</font></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><i><font size="3"><font face="Times New Roman">dpkg-query -W -f='${status}
${Package}=${Version}\n'|grep ^"install ok installed"| cut -d' ' -f4,4 >
pkg_list.1</font></font></i></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><i><font size="3" face="Times New Roman"> </font></i></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><font size="3" face="Times New Roman">On the second computer</font></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><font size="3" face="Times New Roman">I installed Ubuntu from the CD and then
used</font></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><font size="3" face="Times New Roman">cat pkg_list.1 | sudo aptitude install</font></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><font size="3" face="Times New Roman">sudo aptitude upgrade</font></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><i><font size="3"><font face="Times New Roman">dpkg-query -W -f='${status}
${Package}=${Version}\n'|grep ^"install ok installed"| cut -d' ' -f4,4 >
pkg_list.2</font></font></i></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><i><font size="3" face="Times New Roman"> </font></i></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><font size="3" face="Times New Roman">The problem is that pkg_list.1 & pkg_list.2
are different</font></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><font size="3" face="Times New Roman"> </font></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><font size="3" face="Times New Roman">How do I make the installed list to be
identical</font></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><font size="3" face="Times New Roman"> </font></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><font size="3" face="Times New Roman">Thanks</font></p>
<p style="margin: 0cm 0cm 0pt; direction: ltr; text-align: left;"><font size="3" face="Times New Roman">Shahar</font></p></font></div></div>
<br>_______________________________________________<br>
Haifux mailing list<br>
<a href="mailto:Haifux@haifux.org" target="_blank">Haifux@haifux.org</a><br>
<a href="http://hamakor.org.il/cgi-bin/mailman/listinfo/haifux" target="_blank">http://hamakor.org.il/cgi-bin/mailman/listinfo/haifux</a><br>
<br></blockquote></div><br></div>