Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

reinstalling debian /bin



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.





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org