Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jul 2002 20:46:09 -0400 (EDT)
From:      Peter Leftwich <Hostmaster@Video2Video.Com>
To:        Dynsolve <support@dynsolve.net>
Cc:        FreeBSD LIST <FreeBSD-Questions@FreeBSD.Org>
Subject:   Re: removing old versions of packages [pkgdb?]
Message-ID:  <20020730204429.H10245-100000@earl-grey.cloud9.net>
In-Reply-To: <3D45D1F5.10209@dynsolve.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020730204429.H10245-100000>