<br><br><div><span class="gmail_quote">On 10/14/05, <b class="gmail_sendername">Nuno Carvalho</b> <<a href="mailto:rekconk@gmail.com">rekconk@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br>Carthik Sharma wrote:<br>> > This will download the packages that need upgrades. I want to<br>> download<br>> > packages that are already installed, and up-to-date ? (for archival)<br>
> my mistake:<br>><br>> $ dpkg --get-selections | cut -f 1 > packages.list<br>> $ apt-get -d --reinstall --print-uris install `cat packages.list`<br>><br>><br>> Thanks!!! I am still having problem with the second step, where apt-get
<br>> complains that it cannot find some packages. I tried options -m, -f and<br>> --ignore-missing, but it still complains and stops - any quick fixes??<br>This happens because you have packages that aren't installed but not purged.
<br><br>try this:<br>$ dpkg -l | grep ^ii | cut -f 3 -d " " > packages.list</blockquote><div><br>
This would have fit the bill, perfectly, but dpkg -l only lists the
first 14 or so characters in the package name!! So I get stuff like
"acroread-plugi" and "enlightenment-" in the list, which are, of course
not package names.<br>
<br>
Thanks for your help Nuno, I really appreciate it -- would it be
possible for you think of a work around, around this new problem ??<br>
<br>
Thanks again,<br>
Carthik.<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">$ apt-get -d --reinstall --print-uris install `cat packages.list`<br><br>some packages will complain that cannot be reinstalled, that you to care
<br>by hand<br><br>Nuno<br>><br>> Thanks a lot, again,<br>><br>> Carthik.<br>><br><br>--<br><br>Today's fortune:<br>If all the Chinese simultaneously jumped into the Pacific off a 10 foot<br>platform erected 10 feet off their coast, it would cause a tidal wave
<br>that would destroy everything in this country west of Nebraska.<br><br>--<br>ubuntu-users mailing list<br><a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br><a href="http://lists.ubuntu.com/mailman/listinfo/ubuntu-users">
http://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Ph.D. Candidate<br>University of Central Florida<br>Homepage: <a href="http://carthik.net">http://carthik.net</a>