COMP 201 OpenSource L2 SampleInstallation2
COMP 201 OpenSource L2 SampleInstallation2
SYSTEM ADMINISTRATION
DANIEL OBUOBI, DCSIT, CU
Free BSD Installation
FreeBSD Installation
• Described in detail at
http://www.freebsd.org/doc/en_US.ISO8859-1/books/
handbook/ports.html
• The ports is a collection of « skeleton » instructions (Makefile,
patches) to retrieve, configure, build and install software
• The ports collection contains instructions for over 16.000 software
programs as of 2007, and it is still growing.
Installing software ...
1. It must be unpacked
2. It must be adapted to the system one is running on (« porting »)
3. It may be compiled (source -> binary)
4. It must installed
5. It may need to be configured
Installing software ...
The ports system takes care of steps 1 – 4, and sometimes 5
(preconfiguration)
The build and installation process might trigger the build and
Installation of other required software
– this is known as « dependencies ».
PACKAGES PORTS
•
precompiled more and better configuration
easy to install control / options
no need to have ports collection installed
(for example Apache and PHP)
local patches possible
tuning options
Installing packages
• If you have the package on CD, and the CD is mounted, you can
install it directly, for instance:
# pkg_add /cdrom/packages/All/bash-3.1.10_1.tbz
• If you know the URL (Link) to the package on the Internet, you
could:
# pkg_add
ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.1-RELEASE/pac
kages/All/bash-3.1.10_1.tbz
Ports
# cd /usr/ports/sysutils/portupgrade
# make
# make install
# make clean
or
# pkg_add -r portupgrade
• For instance:
# portinstall bash
Using portupgrade
• For instance:
# portupgrade apache