From owner-freebsd-questions@FreeBSD.ORG Tue Mar 30 06:47:58 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F35C616A4CE for ; Tue, 30 Mar 2004 06:47:57 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EB7A43D39 for ; Tue, 30 Mar 2004 06:47:57 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i2UElpGm091409 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 30 Mar 2004 15:47:51 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i2UElpsu091408; Tue, 30 Mar 2004 15:47:51 +0100 (BST) (envelope-from matthew) Date: Tue, 30 Mar 2004 15:47:51 +0100 From: Matthew Seaman To: "Yaraghchi, Stephan" Message-ID: <20040330144751.GB91038@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , "Yaraghchi, Stephan" , freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wq9mPyueHGvFACwf" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk X-Virus-Scanned: clamd / ClamAV version devel-20040323, clamav-milter version 0.70a cc: freebsd-questions@freebsd.org Subject: Re: list patches X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2004 14:47:58 -0000 --wq9mPyueHGvFACwf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 30, 2004 at 04:20:57PM +0200, Yaraghchi, Stephan wrote: > I'm wondering if there's an easy way to list all > the patches already applied to a FreeBSD box. Err -- no. FreeBSD doesn't really work that way. You sound as if you're used to, say, Solaris where there is a system of vendor-produced binary patches and the scripting interface to manage them. While there is http://www.daemonology.net/ there is no official FreeBSD project binary patch system at the moment. FreeBSD does things differently. The primary means of getting updates to the system is to pull down updates to the source code and recompile. There are several ways of doing that, all described in the Handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors.html (especially the section on CVSup which is what most people would use.) In general then the way you'ld characterise the state of the system is to note the time at which you last synchronised your sources against the FreeBSD CVS repository, and which CVS tag you used. There are certain cases which can be described in a more-or-less shortcut manner: those are (a) using one of the releases installed straight =66rom CD, which is refered to as eg. 5.2.1-RELEASE or (b) tracking one of the -RELEASE CVS branches, eg. RELENG_5_2 -- in this case every time a patch is applied the system version as returned by 'uname -r' will indicate a "patch level" eg. 5.2.1-RELEASE-p4. However, you can manually apply the same patches (as directed in the accompanying security advisory) and recompile just the affected part of the system. This gets your system to exactly the same state as tracking the release branch, except that the various version numbers don't get updated. That doesn't count any other sort of ad-hoc patches or local customizations which may have been applied. Neither does it deal with 3rd party software (but see pkg_info(1) for how to deal with that). In short, the most effective way to learn everything you need to know about the state of a FreeBSD box is to ask the person doing the system administration. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --wq9mPyueHGvFACwf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAaYiXdtESqEQa7a0RArlvAKCYt+7AZBzjx7SsZLmIPW6t5gRT8gCggukM t6jXGAYR6TmgJcp71x1pTXE= =Vyr/ -----END PGP SIGNATURE----- --wq9mPyueHGvFACwf--