Changing location of ports tree

Moffatt, Chris cmoffatt at
Sun Nov 6 21:13:45 GMT 2005

The easiest way to change it would be to move the ports folder from /usr to
where ever you are moving it...  Then create a symbolic link...
ln -s /somewhere/ports /usr/ports
Then everything should work as is...


From: owner-freebsd-questions at
[mailto:owner-freebsd-questions at] On Behalf Of ross
Sent: Sunday, November 06, 2005 1:53 PM
To: freebsd-questions at
Subject: Changing location of ports tree

My /usr partition is to small for some of the larger programs 
(, jdk, etc) and I want to move my ports tree to a harddrive 
with more space. can I just change the line in
/usr/local/etc/pkgtools.conf that says "ENV['PORTSDIR'] ||= '/usr/ports'" 
to "ENV['PORTSDIR'] ||= '/mybigfatharddrive/ports'"?

Will all the pkg tools such as portsnap, portupgrade, and portversion 
continue to function properly? will I have to edit any other config files 
before this will work seemlessly?
What time is it?

Dodgeball Time!
freebsd-questions at mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list