On 2002-10-13 15:02, Dave Chapman <[EMAIL PROTECTED]> wrote: > I've managed to completely screw up my ports collection, to the > extent that I can't install anything now (don't want to get into how > I achieved this, too painful/embarassing :-))
Please, try to set your mailer up to wrap lines in a reasonable length; anything between 70 and 80 characters would be fine. > So, what I would like to know is: can I get my system back to a > state as if it had never had any ports installed on it at all, so I > can then put a fresh copy of the ports tree on it and start over > again? Yes, of course. > I'm thinking the procedure may go something like > - remove /usr/local Then run mtree with /etc/mtree/BSD.local.dist as the template file, to recreate a clean, empty /usr/local hierarchy: # mtree -pU < /etc/mtree/BSD.local.dist > - make installworld to replace anything in /usr/local that wasn't > put there by ports installworld should not and will not touch /usr/local > - remove /usr/X11R6 (since X is part of the ports?) That will also "remove" any X11-dependent ports you might have installed, but leave traces behind in /var/db/pkg/*. > - remove the package database under /var/db This will remove the traces mentioned above. You should be done now. > Does this sound like it may work, or have I overlooked some > glaringly obvious flaw in my plan? No. At least, nothing I could easily notice. -- [EMAIL PROTECTED] FreeBSD: The Power to Serve FreeBSD 5.0-CURRENT #12: Thu Oct 10 21:08:38 EEST 2002 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message