From owner-freebsd-stable@FreeBSD.ORG Mon Jun 18 14:15:48 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EFC7516A400 for ; Mon, 18 Jun 2007 14:15:48 +0000 (UTC) (envelope-from dom@helenmarks.co.uk) Received: from mail.goodforbusiness.co.uk (mail.goodforbusiness.co.uk [81.19.179.90]) by mx1.freebsd.org (Postfix) with ESMTP id B62D913C455 for ; Mon, 18 Jun 2007 14:15:48 +0000 (UTC) (envelope-from dom@helenmarks.co.uk) Received: from latham.london.helenmarks.co.uk (unknown [192.168.100.1]) by mail.goodforbusiness.co.uk (Postfix) with ESMTP id CF94611478; Mon, 18 Jun 2007 15:15:46 +0100 (BST) Received: from mail.helenmarks.co.uk (localhost [127.0.0.1]) by latham.london.helenmarks.co.uk (Postfix) with ESMTP id B96B2E041B; Mon, 18 Jun 2007 15:15:46 +0100 (BST) Received: from 195.12.22.194 (SquirrelMail authenticated user dom@helenmarks.co.uk) by mail.helenmarks.co.uk with HTTP; Mon, 18 Jun 2007 15:15:46 +0100 (BST) 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> Date: Mon, 18 Jun 2007 15:15:46 +0100 (BST) From: "Dominic Marks" To: "Vladislav Storojenco" MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-stable@freebsd.org Subject: Re: deinstall ports X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 14:15:49 -0000 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