Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 May 2004 10:17:06 +0100
From:      Daniel Bye <Daniel.Bye@psineteurope.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Installing port - skip required port
Message-ID:  <20040504091706.GA56321@ip12.ops.uk.psi.com>
In-Reply-To: <CE18633630425C45863BFE8EE409098C89C6B7@mercury.admin.rdc.ab.ca>
References:  <CE18633630425C45863BFE8EE409098C89C6B7@mercury.admin.rdc.ab.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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