Setenv PACKAGESITE thepathtoftp, in boot time how to do it?

Edgar Rodolfo cybernautape at gmail.com
Wed Nov 30 11:27:22 UTC 2011


Hi guys, currently i have a machine with freebsd 9 rc2, for default
when i try to use pkg_add -r wget, for example, i can not install
because the path is
freebsd# pkg_add -r xscreensaver
Error: Unable to get
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-current/Latest/xscreensaver.tbz:
File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch
'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-current/Latest/xscreensaver.tbz'
by URL

but i put :
freebsd# setenv PACKAGESITE
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-stable/Latest/

freebsd# pkg_add -r xscreensaver
         Fetching
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-stable/Latest/xscreensaver.tbz...
Done.

it works, pero i want to use for default, without put again it, when
the machine reboot
and i want to use again pkg i am puting the path manually :(, what is
the file when i should put the path? to use pkg_add -r package?,
without put again PACKAGESITE?, thank in advance!


http://cybernautape.blogspot.com


More information about the freebsd-questions mailing list