change link pkg_add

Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

change link pkg_add

Postby douglasfim » 22 Apr 2010, 06:38

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!
User avatar
douglasfim
Member
 
Posts: 139
Joined: 21 Apr 2009, 00:03
Location: Sao Paulo, Brazil

Postby SirDice » 22 Apr 2010, 06:43

Set PACKAGESITE and add it to ~/.cshrc, ~/.bashrc or whatever shell you are using.
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16138
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby lme@ » 22 Apr 2010, 12:49

See ENVIRONMENT in [FILE]pkg_add(1)[/FILE]
User avatar
lme@
 
Posts: 611
Joined: 08 Oct 2007, 19:42
Location: Düsseldorf, Germany

Postby douglasfim » 22 Apr 2010, 17:18

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
User avatar
douglasfim
Member
 
Posts: 139
Joined: 21 Apr 2009, 00:03
Location: Sao Paulo, Brazil

Postby phoenix » 22 Apr 2010, 19:48

douglasfim wrote: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!


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/
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
User avatar
phoenix
MFC'd
 
Posts: 3349
Joined: 17 Nov 2008, 05:43
Location: Kamloops, BC, Canada


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: No registered users and 1 guest