Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Nov 2006 13:57:10 -0800
From:      "Josh Carroll" <josh.carroll@psualum.com>
To:        "Simon Gao" <gao@schrodinger.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Cleanly remove a package
Message-ID:  <8cb6106e0611051357w26081c30i843f8721a8a5a3e7@mail.gmail.com>
In-Reply-To: <454E5D18.7040706@schrodinger.com>
References:  <454E5D18.7040706@schrodinger.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> When upgrading a package say vsftpd, I used port install. After newer
> version is installed, I have both newer and older versions being listed
> if run pkg_info. The newer version works fine.

You can use portupgrade instead, which should deinstall the old
version, then install the new one. You can't install the new one
before the old one, so there will be a brief period of time between
the make deinstall and make reinstall that it may not be available.

Also keep in mind, if you are upgrading something like mysql, you
should update pkgtools.conf to restart it afterwards to minimize down
time (and so you don't have to remember to restart it). You can look
for the AFTERINSTALL section in pkgtools.conf for how to do this.

Josh



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