Re: Oops, no more /usr.
On Tue, Aug 24, 2004 at 02:39:00PM -0500, Tim Kelley wrote:
> On Tue, Aug 24, 2004 at 08:05:28PM +0100, Thomas Adam wrote:
> > On Tue, Aug 24, 2004 at 02:48:34PM -0400, PaulNM wrote:
>
> > > 2: Is there a way to only reinstall packages with files in /usr? For
> > > example, kernel-sources* has files placed in /usr, but kernel-image* do not.
> >
> > COLUMNS=200 dpkg -l | awk '/^ii/ {print $2}' | xargs apt-get --reinstall install
> >
> > Should do it for you.
>
> 'cept that there's no more /usr/bin/dpkg, or apt-get, or xargs, or awk, or ... ;-)
1. Debootstrap. Mount your system and debootstrap woody /target http://ftp.us.debian.org
2. Chroot /target
3. Do the pipeline.
It might work... (Knoppix _should_ have debootstrap...)
Reply to: