Freebsd – How to install DHCP server on FreeBSD 7.2

dhcpfreebsd

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?

Best Answer

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