From owner-freebsd-questions Sun May 26 3:59:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from axel.truedestiny.net (a185066.upc-a.chello.nl [62.163.185.66]) by hub.freebsd.org (Postfix) with ESMTP id 9700437B405 for ; Sun, 26 May 2002 03:59:16 -0700 (PDT) Received: by axel.truedestiny.net (Postfix, from userid 1000) id 6D34049AB2; Sun, 26 May 2002 12:59:18 +0200 (CEST) Date: Sun, 26 May 2002 12:59:18 +0200 From: Axel Scheepers To: Ivan Carey Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how to update a Kernel to the latest version Message-ID: <20020526125918.C43810@mars.thuis> Reply-To: Axel Scheepers References: <00e801c2049f$bfe48190$0201a8c0@ivan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <00e801c2049f$bfe48190$0201a8c0@ivan>; from icarey@bigpond.com on Sun, May 26, 2002 at 08:26:07PM +1000 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 On Sun, May 26, 2002 at 08:26:07PM +1000, Ivan Carey wrote: > I am using FreeBSD 4.3. > How d I update a Kernel to the latest version of 4.5 without doing a complete installation. > > I wish to maintain all the configurations and files, directories etc. The best and preffered way is to do a make world in your /usr/src, this will rebuild your base completely, afterwards you have to run mergemaster and make/install the new kernel. Whenever you just build a new kernel you risk that your userland binaries are out of sync with the kernel, like a non working ps etc. Those programs rely on kernel structures which might have been changed in the meantime, so just upgrading the kernel is generally a bad idea. > > Also how do I update other applications without over writing any configurations etc such a Apache or PHP or Samba? You can keep your ports up to date with CVS or cvsup, then a make && make deinstall && make reinstall in the port's dir will upgrade it the safest way; it will try to build the port first, and only if that went fine it deinstalls the previous version and installs a new one. > > Thanks, > > Ivan > Gr, -- Axel Scheepers UNIX System Administrator email: axel@axel.truedestiny.net a.scheepers@iae.nl http://axel.truedestiny.net/~axel ------------------------------------------ "Houston, Tranquillity Base here. The Eagle has landed." -- Neil Armstrong ------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message