Hello, I just upgraded a machine from FreeBSD 6 to 7. Very nice. But my portupgrade -fa failed after a while. How can I know which ports/packages are still from FreeBSD 6? Is there a datee recorded somewhere or the FreeBSD-version of the port/package? The date of the files in /var/db/pkg/* is unreliable, because installing a package gives these files the date of the files in the package. How do I know which ports I still need to update? Ronald.
Ronald, Look for files that are older than your upgrade/portupgrade -fa date in /usr/local/bin and /usr/local/sbin. e.g. $ find $dir -mtime +2 -type f -xdev -print Add a little guesswork/pkg_info to determine which ports they're from. Throw in a few more forced recursive portupgrades incase anything is broken for having built against older libraries. -- Alex On Tue, Jul 01, 2008 at 05:12:05PM +0200, Ronald Klop wrote:> Hello, > > I just upgraded a machine from FreeBSD 6 to 7. Very nice. > But my portupgrade -fa failed after a while. > How can I know which ports/packages are still from FreeBSD 6? Is there a > datee recorded somewhere or the FreeBSD-version of the port/package? > The date of the files in /var/db/pkg/* is unreliable, because installing > a package gives these files the date of the files in the package. > > How do I know which ports I still need to update? > > Ronald.
Hi May be this will be useful for you (from man portupgrade): Rebuild and reinstall all that ports that were installed prior to the date 2001-09-20: portupgrade -f '<2001-09-20' On 1 ???? 2008, at 18:12, Ronald Klop wrote:> Hello, > > I just upgraded a machine from FreeBSD 6 to 7. Very nice. > But my portupgrade -fa failed after a while. > How can I know which ports/packages are still from FreeBSD 6? Is > there a datee recorded somewhere or the FreeBSD-version of the port/ > package? > The date of the files in /var/db/pkg/* is unreliable, because > installing a package gives these files the date of the files in the > package. > > How do I know which ports I still need to update? > > Ronald. > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable- > unsubscribe@freebsd.org"
Ronald Klop wrote:> I just upgraded a machine from FreeBSD 6 to 7. Very nice. > But my portupgrade -fa failed after a while. > ... > How do I know which ports I still need to update?Run "portupgrade -fan" and see which ones it says still need upgrading. Graham
Ronald Klop wrote: > I just upgraded a machine from FreeBSD 6 to 7. Very nice. > But my portupgrade -fa failed after a while. > How can I know which ports/packages are still from FreeBSD 6? Is there a > datee recorded somewhere or the FreeBSD-version of the port/package? > The date of the files in /var/db/pkg/* is unreliable, because installing a > package gives these files the date of the files in the package. Sorry for th late reply, I didn't see this thread earlier. You can look at the ctime of the +DESC files. That should be the time when the packages were installed. This command will list all packages in the order they were installed: ls -lcrt /var/db/pkg/*/+DESC Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Gesch?ftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M?n- chen, HRB 125758, Gesch?ftsf?hrer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd (On the statement print "42 monkeys" + "1 snake":) By the way, both perl and Python get this wrong. Perl gives 43 and Python gives "42 monkeys1 snake", when the answer is clearly "41 monkeys and 1 fat snake". -- Jim Fulton