Correct syntax for set PACKAGESITE

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

Correct syntax for set PACKAGESITE

Postby macunkie » 07 Jul 2012, 01:24

I've read over the handbook and have used different combinations of


In my case I need to get to ftp://ftp.freebsd.org/pub/FreeBSD/ports/powerpc/packages-9-stable/Latest/

No matter how I attempt to input the set PACKAGESITE i get a syntax error ?

Is there a way to set this auto in my system so I don't have to type (what ever ) the correct path is every time?
Can it be set up in a .profile file of some sort?

Thanks as always,

Samuel.
[color="Red"]MacUnkie[/color]
User avatar
macunkie
Junior Member
 
Posts: 32
Joined: 11 May 2012, 02:58
Location: Northern Nevada

Postby wblock@ » 07 Jul 2012, 05:37

It depends on the shell. What the Handbook shows is not a literal command, but instructions. "to" is not part of the command.

For [man=1]csh[/man]:
[cmd="#"]setenv PACKAGESITE "ftp://ftp.freebsd.org/pub/FreeBSD/ports/powerpc/packages-9-stable/Latest/"[/cmd]

For [man=1]bash[/man]:
[cmd="#"]export PACKAGESITE="ftp://ftp.freebsd.org/pub/FreeBSD/ports/powerpc/packages-9-stable/Latest/"[/cmd]
User avatar
wblock@
Old Fart
 
Posts: 10185
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby macunkie » 08 Jul 2012, 03:45

wblock@ wrote:It depends on the shell. What the Handbook shows is not a literal command, but instructions. "to" is not part of the command.

For [man=1]csh[/man]:
[cmd="#"]setenv PACKAGESITE "ftp://ftp.freebsd.org/pub/FreeBSD/ports/powerpc/packages-9-stable/Latest/"[/cmd]

For [man=1]bash[/man]:
[cmd="#"]export PACKAGESITE="ftp://ftp.freebsd.org/pub/FreeBSD/ports/powerpc/packages-9-stable/Latest/"[/cmd]


Thank you again for all your great support !!

The " " was what I was missing.

Samuel.
[color="Red"]MacUnkie[/color]
User avatar
macunkie
Junior Member
 
Posts: 32
Joined: 11 May 2012, 02:58
Location: Northern Nevada


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: No registered users and 4 guests