[plug] Reconstructing a Debian system
Christian
christian at amnet.net.au
Mon Apr 2 10:40:38 WST 2001
On Mon, Apr 02, 2001 at 10:04:22AM +0800, Matt Kemner wrote:
I suspect you will get a lot of errors, as some of the prerm and postrm
> scripts may depend on some of the files in /usr/ being there.
> I've never tried it though, so it may work.
Hmmm... yeah, you're probably right. I hadn't thought of that. The
other thing is, will the directories be created if they're not already
there? I think they will but I'm not really that familiar with the
internals of Debian packages.
> Personally I'd do "dpkg --get-selections > file.list", backup everything
> and do a fresh install, using "dpkg --set-selections < file.list" once you
> get to the "choose which packages you would like to install" phase. Then
> copy back your /etc/ and /home/ directories (and anything else that
> should be there)
If I did something like:
apt-get --reinstall dist-upgrade
Maybe that would work? If you're re-installing packages then
surely it doesn't make any assumptions about what's there currently.
Of course, the only problem now is...
diffie:~$ which dpkg apt-get
/usr/bin/dpkg
/usr/bin/apt-get
Ummm... :(
Maybe I *will* just do a complete re-install...
--
DSA 0x0EC1D28C: BBCB 0D79 4EBB 078A A066 7267 8BED E9D6 0EC1 D28C
More information about the plug
mailing list