From owner-freebsd-questions@FreeBSD.ORG Mon Feb 11 21:28:56 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4D4716A41A for ; Mon, 11 Feb 2008 21:28:56 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 0767113C442 for ; Mon, 11 Feb 2008 21:28:55 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id m1BLSnaU080363; Mon, 11 Feb 2008 21:28:49 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.4.4 smtp.infracaninophile.co.uk m1BLSnaU080363 Authentication-Results: smtp.infracaninophile.co.uk; dkim=hardfail (SSP) header.i=unknown Message-ID: <47B0BE11.2040201@infracaninophile.co.uk> Date: Mon, 11 Feb 2008 21:28:49 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.9 (X11/20080210) MIME-Version: 1.0 To: darryl@osborne-ind.com References: In-Reply-To: X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Mon, 11 Feb 2008 21:28:49 +0000 (GMT) X-Virus-Scanned: ClamAV 0.92/5779/Mon Feb 11 19:56:48 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Uninstalling a port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2008 21:28:56 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Darryl Hoar wrote: > Greetings, > I have Freebsd 6.3-release installed on my server. I used ports > to install mysql 4.0 on this machine. Turns out, I really need > mysql 4.1. What is the proper technique to remove the mysql 4 > and then install mysql 4.1 ? > > I tried make deinstall, but it says it doesn't know how. Firstly, make sure you don't have any 'WANT_MYSQL_VER= XX' settings in /etc/make.conf while doing this -- you can put such things back in place once this update is complete. Assuming you're a portupgrade user, do the following in this order: # portupgrade -o databases/mysql41-client -f mysql-client-4.0\* # portupgrade -o databases/mysql41-server -f mysql-server-4.0\* Then possibly one or both of the following if you have either of these two ports installed -- if not then just omit this bit: # portupgrade -o databases/p5-DBD-mysql41 -f p5-DBD-mysql40-\* # portupgrade -o databases/mysql41-scripts -f mysql-scripts-4.0\* Then rebuild anything that might link against the libmysql shlib, as you've just replaced it with a later ABI version: # portupgrade -fr -x '>=mysql-client-4.1.22' mysql-client-4.1.22 That rebuilds everything that depends on the mysql client libraries except for packages rebuilt after the updates to the client libraries at the beginning of these instructions. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHsL4Q8Mjk52CukIwRCP3JAJ40TzR0ovo/z7+CM/7CjDiJVkS6TQCffQYc sCtWgtDiVxRwmTBj7B3Sn6A= =TuVR -----END PGP SIGNATURE-----