Remove a Port and All Dependencies

Aaron Dalton aaron at
Fri Feb 24 10:46:22 PST 2006

Jeff Cross wrote:
> Hash: SHA1
> I would like to know if it is possible to remove a port/package and all
> of the dependencies it installed that are not needed by other applications.
> Example: I installed Nautilus and some Gnome games but don't want them
> installed any longer.  However, if I remove the package itself, doesn't
> it leave all of the other dependencies out there?
> Upgrading my system takes forever now that there are a ton of libs and
> such installed by these applications.  So, if anyone can point me in the
> right direction for doing this I would greatly appreciate it.

pkg_deinstall -R portname

pkg_deinstall is part of the sysutils/portupgrade package.

Aaron Dalton
aaron at
FreeBSD Ports Committer

More information about the freebsd-questions mailing list