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.

I have a clean install of FreeBSD 7.2-RELEASE. I want to install a simple DHCP server for a few windows computers. But, unfortunately, following don't work:

pkg_add -r isc-dhcp3-server

Error is: "Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.2-release/latest/isc-dhcp-server.tbz"

What i'm doing wrong? pkg_add -r nano works just fine :(. Is a DHCP server package has different name? Or it must be fetched from another place? Or in 7.2 isc-dhcp3 is not used and it's some other way to run a simple DHCP server?

I know that it's possible to build it from ports (theoretically), but i'm very interested in how to install it as a package from internet. Any hints?

share|improve this question

4 Answers 4

up vote 2 down vote accepted

Way more programs you can find in FreeBSD's ports collection. First you need to checkout ports.

portsnap fetch extract

then ones a day/week/month you should run portsnap fetch update to update collection (not programs them selfs)

After ports are extracted you can find one you want and install it:

cd /usr/ports
make search name=isc-dhcp
cd /usr/ports/net/isc-dhcp31-server
make install clean

PS. And it'll be good to read handbook first

share|improve this answer
    
The original question specifically stated that they didn't want to use ports (and the binary packages are built from ports, anyway). –  Stephen Veiss Aug 26 '09 at 22:27
    
Because for 7.2-release there is only isc-dhcp3-devel is accessible via packages that is in unstable branch at that time. And stable release 3.1.2p1_1 can only be accessible via ports. –  SaveTheRbtz Aug 26 '09 at 23:51
    
So, basically, FreeBSD 7.2-RELEASE is not so 'RELEASE' since it is missing required packages? –  Eye of Hell Aug 27 '09 at 6:36
    
There is always something that you can't install from packages, so you need to use ports instead. –  SaveTheRbtz Aug 27 '09 at 14:52

Try pkg_add -r isc-dhcp31-server

share|improve this answer
    
Same error - 'unable to fetch' :(. –  Eye of Hell Aug 27 '09 at 8:36
    
as you can see here ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.2-release/… the only available is isc-dhcp30-devel.tbz –  SaveTheRbtz Aug 27 '09 at 19:05

Did you try to download this package: ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/net/isc-dhcp31-server-3.1.2p1_2.tbz and install it:

# pkg_add -v isc-dhcp31-server-3.1.2p1_2.tbz

?

share|improve this answer

It seems like the mirror is broken. Like @SaveTheRbtz try updating the ports tree. If that doesn't work, you can always manually fetch the file, and then copy (just google for it) and then place it in the right folder (usually /usr/ports/distfiles).

share|improve this answer

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.