From owner-freebsd-questions@FreeBSD.ORG Tue May 4 02:17:14 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 2DB0A16A4CE for ; Tue, 4 May 2004 02:17:14 -0700 (PDT) Received: from mail.uk.psi.com (mail.uk.psi.com [154.8.2.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40F2143D41 for ; Tue, 4 May 2004 02:17:11 -0700 (PDT) (envelope-from Daniel.Bye@psineteurope.com) Received: from ip12.ops.uk.psi.com ([154.8.22.12]) by mail.uk.psi.com with esmtp (Exim 3.33 #1) id 1BKw31-0003k1-00 for freebsd-questions@freebsd.org; Tue, 04 May 2004 10:17:07 +0100 Received: from danielby by ip12.ops.uk.psi.com with local (Exim 4.32; FreeBSD) id 1BKw30-000GV6-F6 for freebsd-questions@freebsd.org; Tue, 04 May 2004 10:17:06 +0100 Date: Tue, 4 May 2004 10:17:06 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20040504091706.GA56321@ip12.ops.uk.psi.com> Mail-Followup-To: freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Subject: Re: Installing port - skip required port 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, 04 May 2004 09:17:14 -0000 On Mon, May 03, 2004 at 04:42:07PM -0600, Brent Macnaughton wrote: > Is there any way to install a port and tell it NOT to install one or more of > it's required ports? For example: I installed the mysqlcc port, and it > wanted to install mysql-client. I already have mysql-client installed, but I > did not do it from the ports tree. Another port wanted to install Apache as > a requirement. I already have Apache installed, but I did so from source. Is > there some command line option to tell the system not to install certain > ports? Or better yet, a config file I where can list ports not to install. > > Is there also a way to tell portupgrade to skip certain ports? Next time I > do a portupgrade -aRr i do not want it to install mysql-client or Apache. Look at the file /usr/local/etc/pkgtools.conf. Of particular interest to you will be the HOLD_PKGS (to tell portupgrade et al. not to do anything with ports/packages mentioned), and ALT_PKGDEP - there is an example in the extensive inline comments that should cover your situation. HTH Dan -- Daniel Bye SA-DEV PSINet Europe Brookmount Court Kirkwood Road Cambridge CB4 2QH UK