in reply to Re: FreeBSD Ports vs. CPAN
in thread FreeBSD Ports vs. CPAN

Thank you all for the insights! I do have BSDPAN riding herd, though it doesn't seem to tickle the package listing correctly ("no origin recorded"). I don't check UPDATING as often as I should, though I CVSup fairly regularly. Thanks for the tweak!!!

Replies are listed 'Best First'.
Re^3: FreeBSD Ports vs. CPAN
by include (Novice) on Mar 16, 2005 at 18:49 UTC
    There are many tips to fix your database of instaled ports/packages, lets rock.
    (that message i think he is saying you dont have Perl installed via ports)

    a very nice app to help you maintainning the installed ports is sysutils/portupgrade. just:
    #cd /usr/ports/sysutils/portupgrade ; make install clean ; rehash ; portversion | grep '<'
    (read UPDATING) and then
    #portupgrade -aR
    finaly fix the database
    #pkgdb -Fu

    #pkg_info perl-5\* | more
    (#ls -l /var/db/pkg/perl*)
    and you can see if you have Perl installed by ports/packages.
    if you have Perl installed but want to force a reinstall, do:
    #cd /usr/ports/lang/perl5.8 ; make FORCE_PKG_REGISTER=yes install
    read the last output normaly the file pkg_desc or message is outputed in he end of the instalation of any port. i recomend you take a look at http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html

    if you get loss just come to #FreeBSD @freenode.

    god PIP :) (port install party)
      Coolio, but I've gotten myself into portupgrade hell several times. It wants to rebuild everything for every port. :-( I think on a machine that you run it consistently on and follow through with, everything should be copacetic.

      Thanks for the tips though. I have a machine that is fairly clean now, so it should be doable.
        the better choice is to update all ports for a nice system, (and if you are concern about security just install portaudit),, but you can FORCE for only update what you want.
        #portupgrade -f PORTNAME

        but COOLIEST :D is to have a jail to build packages and then deploy to other machines
      Two additions to your portupgrade sequence, for the benefit of others:
      • add FORCE_PKG_REGISTER=yes to the make install clean
      • rehash only exists as a builtin in csh

      It's chuffing away now... :D
        Yep, thats true :D in some machines i dont install other shell than the standard, so sometimes i forget to "un_rehash" my comments;)
        thanks :P

        the last tip is the best one :D
        #man 7 ports
        many people forget this manpage exist :D,, i did learn in here!