Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How can I download a single port from freebsd site instead of downloading the whole port collection?

share|improve this question
3  
What are you trying to accomplish, exactly? Assuming you're talking about portsnap/cvsup, downloading the whole ports collection means downloading all of the metadata files (Makefiles, dependency lists, etc.) for everything in ports, not downloading all of the sources themselves. It will only save you a few megabytes of space -- consider it equivalent to doing an apt-get update in Ubuntu. –  jgoldschrafe Feb 22 '11 at 3:38
    
@jgoldschrafe +1 for detail for cvsup! –  Eonil Feb 22 '11 at 4:44

1 Answer 1

You can install an individual package using the pkg_add command, like this:

pkg_add -r <package>

The -r option asks pkg_add to fetch the package over the network. For example, to install bash:

pkg_add -r bash

As with many things FreeBSD, this is documented in the FreeBSD handbook, specifically in the section titled Using the Packages System. This is worth a read, especially if you're running a -release version of FreeBSD.

share|improve this answer
    
Thanks but I want a port installing. Sorry :) –  Eonil Feb 22 '11 at 4:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.