reinstalling debian /bin

James Kramer kramerjm at gmail.com
Sun Sep 17 17:59:17 EDT 2006


I saw a script for doing this but it didn't work and I am not too
familiar with bash to get it to work:

 dpkg --get-selections | cut -d` ' -f1 | xargs apt-get install --reinstall --yes

I guess that I can install by hand or maybe by deselect.
Jay

On 9/17/06, dsr at tao.merseine.nu <dsr at tao.merseine.nu> wrote:
> On Sun, Sep 17, 2006 at 03:55:21PM -0400, James Kramer wrote:
> > I mounted the root of the OS that requires reinstall to
> > /test
> > I then
> > # chroot /test
> > # cd /test
> > # dpkg -get-selections
> > # apt-get install --reinstall
> > I get the following:
> >
> > caldron:/test# apt-get install --reinstall
> > Reading Package Lists... Done
> > Building Dependency Tree... Done
> > 0 upgraded, 0 newly installed, 0 to remove and 231 not upgraded.
>
> Sorry, I wasn't complete.
>
> dpkg --get-selections will generate a list of packages that you
> have installed. You need to take that list, strip it to the
> package names, and feed those to apt-get install --reinstall.
>
> -dsr-
>

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the Discuss mailing list