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

Re: /bin contents



On Wed, Sep 29, 2004 at 09:13:06PM -0500, Tim Kelley wrote:
> On Wednesday 29 September 2004 21:03, Tim Kelley wrote:
> > On Wednesday 29 September 2004 13:28, Don Hayward wrote:
> > > Is there a package that contains the standard contents of the /bin
> > > directory?  I erred.
> >
> > The following should get all the packages which had files in /bin
> > reinstalled: (one line)
> >
> > apt-get install --reinstall `dpkg -S /bin/[a-z]* | awk
> > 'BEGIN{FS=":"};{print $1}' | sort | uniq`
> 
> actually that won't work since you don't have /bin/sh ...
> you may need to somehow get coreutils and bash installed first.
> 
> hope you didn't log out ...

Might I suggest
linux init=/usr/bin/zsh
linux init=/usr/bin/ksh

If /usr is a seperate partition, pop in a boot floppy and pretend you
are boot-floppies:

mkdir /target
mount -t foo /dev/foo /target
... for all partitions
cp /bin/bash /target/bin/bash
chroot /target
# do the pipeline


-- 
The world's most effective spam filter:
        ln -sf /dev/full /var/mail/$USER



Reply to: