Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jun 2002 15:18:59 -0400
From:      Bill Moran <wmoran@potentialtech.com>
To:        Margie W <walemom@yahoo.com>
Cc:        FreeBSD-Questions@freebsd.org
Subject:   Re: Least Painful Upgrade Path
Message-ID:  <3D1770A3.10009@potentialtech.com>
References:  <20020624184757.61593.qmail@web11008.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Margie W wrote:
> I have a system built about a month ago with
> 4.5-STABLE.  One of the packages I installed at that
> time was Apache-2.0.35.  I need to upgrade that
> package to 2.0.39 due to the security bug discovered
> last week.
> 
> Is the easiest upgrade path to backup the site
> content, uninstall the package, and then re-install
> .39... then recreate the document directories.. and
> restore the content?

That is probably the easiest path.  Don't forget to
backup your Apache .conf files as well before upgrading.
Never do any upgrade of any type without backing up
first.  This goes for Linux, Windows ... any software.

> Does pkg_add have a command line "upgrade" flag that I
> can use that automates all this?

Use portupgrade as described by another response.

> I've seen people metion CVS, which I'm not very
> familiar with.  From what I've read, that seems the
> best bet for performing a system-wide code
> update/upgrade (I think people refer to this as a
> 'build world', right?)... but overkill for one
> package.  Esp if I have to manually compose a
> functional Makefile and recompile the whole system.

If you use portupgrade, you need to use cvsup to make
sure your ports tree is updated or you won't be getting
the latest Apache.  You don't need to make/buildworld
or anything like that to do apache.
cvsup is just a program used to synchronize file versions,
for Apache, you want to synchronize your ports tree, then
upgrade the Apache port.

> How do your answers change if I said I had a
> 4.0-STABLE system that I wanted to fully upgrade to
> 4.6, inc all packages/(custom) kernel.  CVSsup?  (I
> do, but it's another system that I can worry about
> later.)

Follow the cvsup/build/installworld instructions in the
handbook:
http://www.freebsd.org/handbook/cutting-edge.html
Once your system is 4.6-STABLE, just cvsup your ports
tree and use portupgrade on Apache there as well.
It's time-consuming, but you can do other things while
it's running.  It it's a production box, nice the build
process to keep it from intefering with other work the
machine may be doing.
After you install cvsup, it puts example config files
in /usr/share/examples/cvsup.  The "ports-supfile" will
get you 90% of the way to cvsupping your ports.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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