Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jun 2007 15:15:46 +0100 (BST)
From:      "Dominic Marks" <dom@helenmarks.co.uk>
To:        "Vladislav Storojenco" <smainv@yahoo.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: deinstall ports
Message-ID:  <54537.195.12.22.194.1182176146.squirrel@mail.helenmarks.co.uk>
In-Reply-To: <47805.6899.qm@web50009.mail.re2.yahoo.com>
References:  <47805.6899.qm@web50009.mail.re2.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Vladislav Storojenco wrote:
> Hello all,
> I'm new user in FreeBSD and have a question about
> ports..
> If a port is depend on others ports, during the
> deinstall it will deinstall and all dependencies?

It depends on what command you issue.  If you try and remove an installed
package which had other packages dependent upon it, then it will fail.

# pkg_delete /var/db/pkg/apache-2.2.4_2/
pkg_delete: package 'apache-2.2.4_2' is required by these other packages
and may not be deinstalled:
php5-5.2.1_3
php5-mysql-5.2.1_3
php5-pcre-5.2.1_5
php5-posix-5.2.1_3
php5-session-5.2.1_3
php5-simplexml-5.2.1_3
...

But you could force it by using `pkg_delete -f` if you wanted.  This on
its own will not remove the dependancies, you need to use `pkg_delete -rf`
for that.

If you run `make deinstall` from the port directory you get the same
result as having used `pkg_delete -f` (but not -rf).

Dominic




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