From owner-freebsd-questions Tue Jul 30 17:46:17 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 E9FFB37B400 for ; Tue, 30 Jul 2002 17:46:10 -0700 (PDT) Received: from russian-caravan.cloud9.net (russian-caravan.cloud9.net [168.100.1.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA0CE43E65 for ; Tue, 30 Jul 2002 17:46:09 -0700 (PDT) (envelope-from Hostmaster@Video2Video.Com) Received: from earl-grey.cloud9.net (earl-grey.cloud9.net [168.100.1.1]) by russian-caravan.cloud9.net (Postfix) with ESMTP id 55AA928C61; Tue, 30 Jul 2002 20:46:09 -0400 (EDT) Date: Tue, 30 Jul 2002 20:46:09 -0400 (EDT) From: Peter Leftwich X-X-Sender: To: Dynsolve Cc: FreeBSD LIST Subject: Re: removing old versions of packages [pkgdb?] In-Reply-To: <3D45D1F5.10209@dynsolve.net> Message-ID: <20020730204429.H10245-100000@earl-grey.cloud9.net> Organization: Video2Video Services - http://Www.Video2Video.Com 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 Mon, 29 Jul 2002, Dynsolve wrote: I have no manpage for "pkgdb." Please advise. Thanks, > Try pkgdb -F to fix problems with stale depencies found trying to > upgrade via ports, as well as fixing issues where "multiple versions" > are installed. It will allow you to unregister them. Optionally, you > can manually edit your package db with a text editor, but I do not know > enough to explain that route. However, pkgdb -F comes in handy when you > are using "portupgrade". > > After you make sure your package database is up to date, you can do a > "portupgrade program-1.0.14_1". > > It will register this change to your package db. > > Between cvsup, pkgdb, and portupgrade, it is much easier now to make a > massive upgrade from say 4.5R to 4.6p3, including upgrading your > enlightenment, gnome, kde, etc., etc. > > "pkgdb" will come in handy big-time. I once used pkg_delete where I > should have just pkgdb -F then do a portupgrade on that single port. It > was in a case where I had multiple versions installed. Naturally, I did > the pkg_delete on the older of the two versions. If you really screw up > like I did, you'll want to just make ; make install or make deinstall ; > make reinstall on the offending port which is causing an inability to > install other ports. Once the root of the problem is solved, you can be > more sure with pkgdb and portupgrade. > > In particular, I had error references to Atom.h and cannot find an .so > library. It boiled down to the fact that I nuked some stuff related to > my XFree86 install. Once figuring that out, I "by hand" port upgraded > (reinstall) XFree86 and Libraries. Then, bouncing back and forth > between "pkgdb -f" and "portupgrade -ra", and occasionally using > portupgrade on a single port, I was able to upgrade to the latest > "everything" install (latest stable kernal/X11/enlightenment/gnome w/ > kde support). > > Hope this helps some of you out there, > > Kristopher Spencer > > Peter Leftwich wrote: > >On 27 Jul 2002, karl agee wrote: > >>let's say I have two versions of a package, like acrobat reader installed. Can I simply use pkg_delete to remove the old one w/o affecting the new one???? --karl > > I've often wondered about this too, since with FreeBSD it doesn't seem intuitive how to upgrade and not have extra stuff around. You know that pkg_add [-r] also installs dependencies, so I'd imagine pkg_delete would know about them. You may want to use pkg_info first, pkg_delete the old one exactly by name, then if the one you intend to keep is harmed in any way, simply `pkg_add -rf` to re-add the package forcibly. > > Also, if it's just a binary, sometimes it's as simple as doing a `rm -rf directory_name_here` but that might leave behind conf and .rc files and stuff in your /etc/ folder for all I know. > > Cheers, -- Peter Leftwich President & Founder Video2Video Services Box 13692, La Jolla, CA, 92039 USA +1-413-403-9555 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message