From owner-freebsd-ports Tue May 2 23:32:53 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 9D6A237B5F5; Tue, 2 May 2000 23:32:51 -0700 (PDT) (envelope-from kris@FreeBSD.org) Received: from localhost (kris@localhost) by freefall.freebsd.org (8.9.3/8.9.2) with ESMTP id XAA87116; Tue, 2 May 2000 23:32:51 -0700 (PDT) (envelope-from kris@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: kris owned process doing -bs Date: Tue, 2 May 2000 23:32:50 -0700 (PDT) From: Kris Kennaway To: Greg Lehey Cc: FreeBSD-ports@FreeBSD.org Subject: Re: Easy way to upgrade ports? In-Reply-To: <20000503141130.M8284@freebie.lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 3 May 2000, Greg Lehey wrote: > I've just installed a new machine, and have vowed not to carry over my > old, crufty ports, but to install the latest versions instead. But > how do I find out which ones I need? I can use pkg_info to tell me > the names of the currently installed ports, but that doesn't even tell > me which directory they came from, let alone what the name of the > current port is. Have I missed something, or is this something we > need to look at? Packages don't record the port they came from, because packages don't have to be installed from a port. However you'll find that most of them have the same "base name" in the port as in the package: doing "echo /usr/ports/*/foo" to find out which directory the foo-1.0 package lives in will usually work. To find out which packages you have installed which may need upgrading, the pkg_version utility may be useful. You could also look on an old FreeBSD CD and find out which directory the package lives in - the directory structure mirrors the layout of the ports tree they were built from. Kris ---- In God we Trust -- all others must submit an X.509 certificate. -- Charles Forsythe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message