On 2009/09/16 02:21, Dimitri Syuoul wrote: > Hello, > > Iam an apache2 user (sadly in OBSD 4.5. > > I would like to know what is the best way to update our current apache2 > compilation from stable (2 months old) to the most recent stable version ( > apache-httpd-2.2.13) which holds several CVE fixes). > > Hence apache-httpd is not just one package but a set of dependencies I would > like to know what would be the cleanest way to perform this upgrade and > making sure I avoid any possible downtime hence this is a live sever.
Here's the cleanest way. It requires having a spare machine or VM available to build on (I'll call it buildbox in the instructions below) but it minimizes risk and downtime. on the build machine: - start from a clean machine, or pkg_delete any related ports (you can "pkg_delete /var/db/pkg/*" if you don't need to keep anything) - update to the latest OPENBSD_4_5 ports tree - change to the apache-httpd dir, set PKG_PATH to an OpenBSD mirror site, "make package FETCH_PACKAGES=Yes". then, on the production machine/s: PKG_PATH=scp://u...@buildbox/usr/ports/packages/$ARCH/all/ sudo pkg_add -ui