1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

change link pkg_add

Discussion in 'Installation and Maintenance of Ports or Packages' started by douglasfim, Apr 22, 2010.

  1. douglasfim

    douglasfim New Member

    Messages:
    139
    Thanks Received:
    0
    How do I change the link "ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.0-release" to "ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-current/" of a permanently when using pkg_add

    thanks!
     
  2. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,628
    Thanks Received:
    2,386
    Set PACKAGESITE and add it to ~/.cshrc, ~/.bashrc or whatever shell you are using.
     
  3. lme@

    lme@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    644
    Thanks Received:
    208
    See ENVIRONMENT in pkg_add(1)
     
  4. douglasfim

    douglasfim New Member

    Messages:
    139
    Thanks Received:
    0
    I'll have to set the variable in the boot? if I put in ~/bashrc he stayed only for a specific user right?

    http://myfreebsd.homeunix.net/hints_n_kinks/pkgsite.html

    the best way would be to set the variable in /etc/profile ?

    export PACKAGESITE=ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages/All
     
  5. phoenix

    phoenix Moderator Staff Member Moderator

    Messages:
    3,450
    Thanks Received:
    770
    Don't do that. :) You'll be downloading and installing packages built on FreeBSD 9-CURRENT, which won't work on a FreeBSD 8.x system.

    Instead, use ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/