c4a3 change link pkg_add - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

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

Reply
 
Thread Tools Display Modes
  #1  
Old April 22nd, 2010, 07:38
douglasfim's Avatar
douglasfim douglasfim is offline
Member
 
Join Date: Apr 2009
Location: Sao Paulo, Brazil
Posts: 136
Thanks: 20
Thanked 0 Times in 0 Posts
Default change link pkg_add

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!
Reply With Quote
  #2  
Old April 22nd, 2010, 07:43
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,860
Thanks: 48
Thanked 2,061 Times in 1,890 Posts
Default

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.
Reply With Quote
  #3  
Old April 22nd, 2010, 13:49
lme@'s Avatar
lme@ lme@ is offline
FreeBSD Developer
 
Join Date: Oct 2007
Location: Düsseldorf, Germany
Posts: 590
Thanks: 44
Thanked 182 Times in 90 Posts
Default

See ENVIRONMENT in pkg_add(1)
Reply With Quote
  #4  
Old April 22nd, 2010, 18:18
douglasfim's Avatar
douglasfim douglasfim is offline
Member
 
Join Date: Apr 2009
Location: Sao Paulo, Brazil
Posts: 136
Thanks: 20
Thanked 0 Times in 0 Posts
Default

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_...s/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
Reply With Quote
  #5  
Old April 22nd, 2010, 20:48
phoenix's Avatar
phoenix phoenix is offline
Moderator
 
Join Date: Nov 2008
Location: Kamloops, BC, Canada
Posts: 3,179
Thanks: 43
Thanked 715 Times in 587 Posts
Default

Quote:
Originally Posted by douglasfim View Post
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/po...ages-8-stable/
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change to pkg_add - get other architecture mix_room FreeBSD Development 3 April 16th, 2010 10:34
pkg_add: warning: montelion Installation and Maintenance of FreeBSD Ports or Packages 2 February 15th, 2010 01:54
change pkg_add -r to look in packages-7-stable? mobiusnz Installation and Maintenance of FreeBSD Ports or Packages 3 June 5th, 2009 09:29
pkg_add and many dependencies Oberon Installation and Maintenance of FreeBSD Ports or Packages 6 May 9th, 2009 19:16
pkg_add config? FreeBIE Installation and Maintenance of FreeBSD Ports or Packages 4 April 7th, 2009 11:51


All times are GMT +1. The time now is 12:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0