From owner-freebsd-questions Fri May 17 8:35:37 2002 Delivered-To: freebsd-questions@freebsd.org Received: from rutger.owt.com (rutger.owt.com [204.118.6.16]) by hub.freebsd.org (Postfix) with ESMTP id B844D37B40A for ; Fri, 17 May 2002 08:35:30 -0700 (PDT) Received: from owt.com (owt-207-41-94-232.owt.com [207.41.94.232]) by rutger.owt.com (8.9.3/8.9.3) with ESMTP id IAA02969; Fri, 17 May 2002 08:35:28 -0700 Message-ID: <3CE52340.6080209@owt.com> Date: Fri, 17 May 2002 08:35:28 -0700 From: Kent Stewart User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 X-Accept-Language: en-us, es-mx MIME-Version: 1.0 To: pjklist@ekahuna.com Cc: questions@FreeBSD.ORG Subject: Re: Portupgrade / pkgdb question References: <20020517051517645.AAA373@empty1.ekahuna.com@pc02.ekahuna.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Philip J. Koenig wrote: > Been trying to upgrade ports on a machine that started out running > 4.1, was most recently running 4.3-Stable, and is now running 4.6- > Prerelease. > > Upgraded portupgrade itself OK, but when I do a "pkgdb -F" it shows > most of the installed packages as having no "origin". (apparently > this is because the "origin" concept was introduced after 4.1) > > My understanding is that "origin" is the path to the port in the > ports directory - ie if the port is /usr/ports/editors/joe, the > origin is "editors/joe". > > But there is no interactive search or anything to help find the > correct path to input to correct this problem when running "pkgdb - > F", so does this mean that I have to sit down, manually find and make > a list of all the modern equivalents/locations of all 200 installed > packages, then manually type in each path for each old package during > "pkgdb -F" before I can effectively use portupgrade? I keep seeing cases where I think the easy solution is to pkg_delete -r pkg_name This will recursively delete anything using pkg_name, and then, you can remake the end of the line packages you are trying to upgrade. Everything that uses the base package needs to be upgraded and installed. Kent > > I even tried to use pkg_deinstall to remove a group of non-essential > packages to minimize the number I have to upgrade, but I got this > error (the following is a test run - ie using the -n option): > > #pkg_deinstall -c -n -v 'p5-*' |& tee deinstall_test_1 > > /usr/local/sbin/pkg_deinstall:322:in `deinstall_pkg': undefined local > variable or method `dry_parse' for # (NameError) > from /usr/local/sbin/pkg_deinstall:271:in `main' from > /usr/local/sbin/pkg_deinstall:269:in `reverse_each' from > /usr/local/sbin/pkg_deinstall:269:in `main' from > /usr/local/sbin/pkg_deinstall:84:in `initialize' from > /usr/local/sbin/pkg_deinstall:84:in `new' from > /usr/local/sbin/pkg_deinstall:84:in `main' from > /usr/local/sbin/pkg_deinstall:410 ---> Deinstalling 'p5-SNMP-Util- > 1.6' ---> Checking for overwritten files > > > When I tried to use just "p5-*" (no quotes) as the package specifier, > it didn't work at all. > > I also can't find a good explanation in the pkgdb docs how to correct > dependencies. When running pkgdb -F, it prompts when it thinks it > has a stale dependency (even for portupgrade itself) but I'm not sure > which option at that point does what? > > Thanks in advance, > > Phil > > > -- > Philip J. Koenig pjklist@ekahuna.com > Electric Kahuna Systems -- Computers & Communications for the New Millenium > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > . > > -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message