From owner-freebsd-questions Thu Oct 24 20:42:54 2002 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 422AA37B401 for ; Thu, 24 Oct 2002 20:42:53 -0700 (PDT) Received: from notus.primus.ca (mail.tor.primus.ca [216.254.136.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C916843E42 for ; Thu, 24 Oct 2002 20:42:52 -0700 (PDT) (envelope-from leth@primus.ca) Received: from dialin-156-230.tor.primus.ca ([216.254.156.230]) by notus.primus.ca with esmtp (Exim 3.33 #16) id 184vMv-00013Z-0A; Thu, 24 Oct 2002 23:42:42 -0400 Date: Thu, 24 Oct 2002 23:42:43 -0400 (EDT) From: Jason Hunt X-X-Sender: leth@lethargic.dyndns.org To: freebsd-questions@freebsd.org Cc: "Kirk R. Wythers" Subject: Re: housecleaning and portupgrade question In-Reply-To: <1035474504.15382.20.camel@lorax.forestry.umn.edu> Message-ID: <20021024231510.O22947-100000@lethargic.dyndns.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 24 Oct 2002, Kirk R. Wythers wrote: > It looks to me like there is no reason for both aalib-1.4.r5 and > aalib-1.4.r5_1. Seems that portupgrade does not cause this problem and > is the prefered upgrade method > > There are numerous examples of this issue. My question is: what is the > recommended way to delete an old version application x. This assumes of > course that you are sure that it is not depended upon by some other app. > Well you don't want to just 'pkg_delete -f' the older versions, since there will probably be a lot of files that got updated by the new version, which would cause a big mess. Personally I have always just installed the newer version of a port on-top of the older one. Then I go through the package "database" and fix the dependencies (I actually have a small script to do this for me). The package "database" is stored in the /var/db/pkg directory. Each port has it's own subdirectory, each of which contains a few files to describe the package, it's dependencies, files, etc. After fixing the dependencies I just remove the directory for the old package and it's "uninstalled". I don't know if this is the best way to go about maintaining packages, and I realize that lots of unused/old files are being left around, but FWIW I have not run into any problems. Maybe someone has better advice? Also, I never really liked the idea of using portupgrade because it maintains a separate database and a completely different set of commands. I'm not saying portupgrade is bad since I really can't judge it, but (I know I sound like a prick here, but ...) if it's so good then why isn't it incorporated into the base system? I'm certainly open to new ideas, etc, but portupgrade seems like more of a bandaid to the original pkg database then fixing the "problem" (of upgrading ports and maintaining the database). Comments? Let me know if I'm way out of line. :) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message