Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Sep 2008 22:48:16 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        ipfreak@yahoo.com
Cc:        freebsd general questions <freebsd-questions@freebsd.org>
Subject:   Re: upgrade packges
Message-ID:  <48D56FA0.1000202@infracaninophile.co.uk>
In-Reply-To: <820483.44101.qm@web52104.mail.re2.yahoo.com>
References:  <820483.44101.qm@web52104.mail.re2.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
gahn wrote:
> Hi all:
> 
> I am trying upgrading some packages and having problems. for example:
> 
> home# pkg_delete mysql-client-5.0.67
> pkg_delete: package 'mysql-client-5.0.67' is required by these other packages
> and may not be deinstalled:
> apache-2.2.9_5
> php5-5.2.6_2
> cyrus-sasl-2.1.22_1
> postfix-2.5.4,1
> subversion-1.5.2
> 
> ok, if i removed it via "pkg_delete -f" and replace it with new
> version (5.1), then what would happen to packeges like apach2.2.9.5,
> php5-5.2.6_2 ...? are those packages would fail?

Usually you can do something like this:

   portupgrade -o databases/mysql51-client -f mysql-client-5.0.67

which will replace mysql client 5.0.67 with 5.1.26 or whatever the
patch levels have got to, while preserving the records of what depends
on mysql-client.

However, in this specific case, that will cause everything to pretty much 
entirely stop working as there is an issue to do with changing the ABI 
version number of the MySQL shlib.  In this case you would also have to
go on and do:

   portupgrade -fr mysql-client-5.1.26 -x mysql-client-5.1.26

to relink all of those applications.  Remember too, if you have 
WITH_MYSQL_VER=50 defined in /etc/make.conf then do change it.

You can achieve the same effect with other ports management applications
like portmaster but I'll leave working out the precise command lines as an 
exercise for the student.

	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


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkjVb6cACgkQ8Mjk52CukIzfUgCfZZBn2oYXpcD3DrpBoeKE2w+f
liMAn0hLR3tF+ZCSywieVJ6oDJj3ICTF
=bmsk
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48D56FA0.1000202>