John O'Hagan wrote:
On Tue, Mar 14, 2006 at 05:32:46PM +1100, Paul Dwerryhouse wrote:
apt-get --reinstall install \
$(cd /var/lib/dpkg/info; grep -l '^/bin/' *.list|sed 's/.list$//')
Thanks for this ingenious solution; there are still a couple of things to iron
out though: for some reason the command substitution above produces a shorter
list of files than what should be in /bin (I'm trying to figure out why);
You have probably already figured this out, but many of those packages
provide more than one of the executables in /bin. To see this, try:
dpkg -L gzip | grep ^/bin
You will see that this package, alone, provides 14 files in /bin.
--
Marc Shapiro
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]