From owner-freebsd-questions Mon Jun 24 12:13:14 2002 Delivered-To: freebsd-questions@freebsd.org Received: from infinity.aesredfish.net (ns1.aesredfish.net [65.168.0.12]) by hub.freebsd.org (Postfix) with ESMTP id AE77637B401 for ; Mon, 24 Jun 2002 12:13:07 -0700 (PDT) Received: from potentialtech.com (mhope-dhcp-65-168-1-181.dashfast.com [65.168.1.181]) by infinity.aesredfish.net (8.11.6/8.11.0) with ESMTP id g5OJChr27454; Mon, 24 Jun 2002 15:12:43 -0400 Message-ID: <3D1770A3.10009@potentialtech.com> Date: Mon, 24 Jun 2002 15:18:59 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0rc1) Gecko/20020502 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Margie W Cc: FreeBSD-Questions@freebsd.org Subject: Re: Least Painful Upgrade Path References: <20020624184757.61593.qmail@web11008.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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