From owner-freebsd-questions Thu Jan 16 23: 5:50 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97A4137B405 for ; Thu, 16 Jan 2003 23:05:48 -0800 (PST) Received: from electricrain.com (electricrain.com [64.71.143.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD32543F65 for ; Thu, 16 Jan 2003 23:05:47 -0800 (PST) (envelope-from fuzzy@electricrain.com) Received: (qmail 15559 invoked by uid 540); 17 Jan 2003 07:05:41 -0000 Date: Thu, 16 Jan 2003 23:05:41 -0800 From: Chris Doherty To: paul van den bergen Cc: FreeBSD-questions Subject: Re: make in ports versus pkg_add Message-ID: <20030117070541.GA15256@zot.electricrain.com> Reply-To: chris-freebsd@randomcamel.net References: <200301171758.40579.pvandenbergen@swin.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200301171758.40579.pvandenbergen@swin.edu.au> User-Agent: Mutt/1.4i X-Operating-System: XEmacs X-Koan: mu. Organization: The Inside Foundation Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jan 17, 2003 at 05:58:40PM +1100, paul van den bergen said: > Hi all, > > dumb q warning > > it seems to me that doing an install from /usr/ports/... is fine and all, but > how do you do an uninstall? > > ok, with pkg_remove or pkg_delete, this is not a problem... but how does pkg > know??? the pkg_* tools get that information from the directories in /var/db/pkg, which contain files with dependencies and packing lists. I prefer to use pkg_deinstall, which has support for wildcards and dependency recursion (if I delete a package I can tell pkg_deinstall to delete everything depending on that package, so I don't end up with packages broken because I deleted something they need). also note that pkg_* take specific package names, and not port names: i.e. I have to use "zip-2.3_1" and not just "zip". if the port version has not changed (e.g. the version of zip in /usr/ports/archivers/zip is still 2.3), you can cd to the ports directory and type "make deinstall". it's always worth a shot: if the port version has changed it will just say "Port is not installed", with no harm done. HTH, Chris ------------------------------- Chris Doherty chris [at] randomcamel.net "I think," said Christopher Robin, "that we ought to eat all our provisions now, so we won't have so much to carry." -- A. A. Milne ------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message