From owner-freebsd-questions@FreeBSD.ORG Thu Apr 2 07:19:48 2009 Return-Path: Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E785D106567E for ; Thu, 2 Apr 2009 07:19:48 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 1B0798FC27 for ; Thu, 2 Apr 2009 07:19:47 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id n327JM1N006320; Thu, 2 Apr 2009 09:19:46 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id n327JMhf006319; Thu, 2 Apr 2009 09:19:22 +0200 (CEST) (envelope-from olli) Date: Thu, 2 Apr 2009 09:19:22 +0200 (CEST) Message-Id: <200904020719.n327JMhf006319@lurza.secnetix.de> From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG, Polytropon , Richard DeLaurell In-Reply-To: <20090401224120.95200698.freebsd@edvax.de> X-Newsgroups: list.freebsd-questions User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Thu, 02 Apr 2009 09:19:46 +0200 (CEST) Cc: Subject: Re: py24-gobject won't deinstall X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@FreeBSD.ORG, Polytropon , Richard DeLaurell List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Apr 2009 07:19:49 -0000 Polytropon wrote: > Richard DeLaurell wrote: > > I reveal my ignorance: why does this work to delete the package > > > > # pkg_delete -f /var/db/pkg/py24-gobject* > > > > while 'pkg_delete py24-gobject*' did not? > > Use the -f, Luke. The force! Use the force! :-) > > > Would the latter have done the trick if issued from the /var/db/pkg > > directory itself? > > If you delete a package with -f that is required by another > package, you BREAK this package. That's okay only if you're > going to install the needed dependency right afterwards (by > pkg_add or make). However, the problem is that you will lose dependency information if you do it that way. That's why it is not recommended. Better use one of the port management tools (portmaster, portupgrade) which have options to replace one port with another port while retaining its dependencies. As a rule of thumb, never use a "force" option (-f) with any tool (rm, umount, pkg_delete, ...) unless you know exactly what the consequences are. I've seen people shooting their feet too often that way. Best regards Oliver PS: To check the consistency of your package database, you can use this small script (requires Python): http://www.secnetix.de/olli/scripts/pkg_check_dependencies If you get no output from "pkg_check_dependencies -q", then your dependencies are good. -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "What is this talk of 'release'? We do not make software 'releases'. Our software 'escapes', leaving a bloody trail of designers and quality assurance people in its wake."