How do I prevent a port from installing?

Bahman Movaqar b.movaqar at
Thu Nov 22 20:48:42 PST 2007

On 2007-11-22 Robert Huff wrote:

> David Benfell writes:
> >  Also, in deinstalling jdk, I found that apache-ant relied upon
> >  it, but I couldn't see what depended on apache-ant.
> 	"man pkg_info", paying attention to the 'r' and 'R' options.
> >  Is there a workaround for apache-ant?
> 	If it's a mandatory dependency - i.e. not installed because of
> an option - the anxwer is probably "No.".
> 	You could consult the maintainer for a more authoratative
> opinion.

# cat /var/db/pkg/apache-ant-X.Y.Z/+REQUIRED_BY
Where X, Y and Z are ant versions.  If the file exists, the contents
show the ports that depend on ant.  If it doesn't exist, it means that
no other port is dependant on ant.

However, keep in mind that ant is a build (make) tool for Java
applications.  It is quite possible that there are no applications that
depend on ant for running and at the same time it is likely that if you
deinstall ant you won't be able to build (run?) some of your Java
applications anymore.

Bahman Movaqar
PGP KeyID: 0xDA647509 (

Talking nonsense is man's only privilege that distinguishes him from
all other organisms.
-Fyodor M. Dostoevsky
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list