Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jun 2007 22:44:04 -0800
From:      "Rodrigo Galiano" <rodrigo@liralink.com>
To:        "'Dominic Marks'" <dom@helenmarks.co.uk>, "'Vladislav Storojenco'" <smainv@yahoo.com>
Cc:        freebsd-stable@freebsd.org
Subject:   RE: deinstall ports
Message-ID:  <007e01c7b23d$46ce41a0$d46ac4e0$@com>
In-Reply-To: <54537.195.12.22.194.1182176146.squirrel@mail.helenmarks.co.uk>
References:  <47805.6899.qm@web50009.mail.re2.yahoo.com> <54537.195.12.22.194.1182176146.squirrel@mail.helenmarks.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
No, if you make 'deinstall' under a specific port it will only uninstall the
software package with the dependencies. If you want to deinstall
dependencies do the command 'make clean' to check out what will be actually
installed and diff the output with the results obtained with the 'pkg_info'
command. Then finally do the command 'pkg_delete #package_name#' to
deinstall the dependencies.

Regards  
-----Original Message-----
From: owner-freebsd-stable@freebsd.org
[mailto:owner-freebsd-stable@freebsd.org] On Behalf Of Dominic Marks
Sent: segunda-feira, 18 de Junho de 2007 06:16
To: Vladislav Storojenco
Cc: freebsd-stable@freebsd.org
Subject: Re: deinstall ports

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

_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?007e01c7b23d$46ce41a0$d46ac4e0$>