Date: Fri, 6 Jun 2003 18:45:14 -0500 From: "Scot W. Hetzel" <hetzels@westbend.net> To: "Lewis Watson" <lists@visionsix.com>, <freebsd-isp@freebsd.org> Subject: Re: Updating Ports on Production Servers Message-ID: <007701c32c85$ad9547e0$13fd2fd8@Admin02> References: <00f501c32c82$c53e9750$de0a0a0a@vsis169>
next in thread | previous in thread | raw e-mail | index | archive | help
From: "Lewis Watson" <lists@visionsix.com>
> I am a big fan of the ports collection and use the ports to build the
> programs I use on our production servers. Now I am wanting to update some
> ports and have a chicken and egg issue. If I go ahead and update a port
> (pure-ftpd for example)...
>
> After I run "CVSUP portfile" the old version that's running has no
> graceful way of being removed. If I try to remove it I am notified that
> the version that is running is not on the machine so then I guess force
> the uninstall? Either that or just do a make - make install and overwrite
> the old port binaries with the new binaries ( this does not seem good
> either).
>
> It appears the only way to cleanly upgrade a port is to deinstall the
> current port. Run CVSUP portfile... and get the new port files... do a
> make - make install and get the new version of the port installed. This
> opens the machine to several minutes of downtime while the program is
> being made... (not good either)
>
> Please tell me the way that it's being handled on your servers/ network...
First you need to CVSUP your ports collection to update it, then you have
two ways to upgrade the port:
1. Use the old upgrade method:
a. cd /usr/ports/<category>/<port-name>
b. make build
c. pkg_delete <port-name>-<old-version>
d. make install
Disadvantage:
- Doesn't update the dependencies of the port.
- Requires you to remove and reinstall all ports that depend on
the port your installing.
or
2. Use sysutils/portupgrade
Advantage:
- Upgrades dependencies for the port your installing.
- Upgrades all ports that depend on the port your installing (and
any port that had their dependencies updated)
Scot
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?007701c32c85$ad9547e0$13fd2fd8>
