Re: Fixing Broken System
On Mon, Jun 17, 2002 at 09:23:19AM -0400, Brian Victor wrote:
> Due to an intermittent hard drive error which has since been fixed, my
> root partition has taken significant but not sweeping damage. Most
> binaries still work, but a few don't, such as df, cat, and mount. I
> don't know precisely how much was damaged, nor do I know an easy method
> of determining this.
>
> That said, is there any way of forcing apt to reinstall all installed
> packages or something? From what I can tell, upgrade and dist-upgrade
> only reinstall changed packages. Or perhaps I can install the potato
> base and use my existing apt database to tell it what packages to
> install? What is the recommended way of recovering such a broken
> system?
Probably someone on debian-user would know better, this is not a powerpc
question.
If I were trying to do this (but I'm no expert!), I would try something like
dpkg -S `ls /bin` | sed 's/:.*$//' | sort | uniq > package_list_bin
dpkg -S `ls /sbin` | sed 's/:.*$//' | sort | uniq > package_list_sbin
to see what packages are involved, and then edit package_list
into a script that would apt-get remove and apt-get install them.
It would probably be dangerous to do them all at once.
--
*------v--------- Installing Debian GNU/Linux 3.0 --------v------*
| <http://www.debian.org/releases/woody/installmanual> |
| debian-imac (potato): <http://debian-imac.sourceforge.net> |
| Chris Tillman tillman@voicetrak.com |
| May the Source be with you |
*----------------------------------------------------------------*
--
To UNSUBSCRIBE, email to debian-powerpc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: