FreeBSD: how to upgrade the ports
tagged cvsup , freebsd , packages , ports , slackware and sysinstall Nessun commento » FreeBSD, Open Source, Tips & tricks tagged CVSup, freebsd, packages, ports, slackware and sysinstall No comment '
Before you dive headlong into the world of Debian GNU / Linux a few years I have worked almost exclusively with FreeBSD, which continued to use on some servers that host critical applications.
As (almost) everyone knows, FreeBSD offers two distinct mechanisms to install applications: the system of Packages for the installation of prebuilt packages el'albero of Ports to install autocompilante. The first method of managing the package resembles fully with those adopted by major Linux distributions. For those who work routinely with Slackware similarities are particularly evident, as shown by the screenshot of a page of `` sysinstall that play below.
Unlike the case of ports, which in a sense are the "real" instrument of management software under FreeBSD. The management of ports allows you to download locally the tree or the tree full of instructions for building and installing divided by categories of software. In each port downloaded in the local tree is given a description of the dependencies and the skeleton of the code. Through a series of simple commands you can install, uninstall, reinstall, delete, update every program installed on the server, including the core operating system.
For proper maintenance of ports is dell'alberatura well provide a mechanism for updating the tree. First, make sure that the ports are installed on the server, otherwise pensiamoci us:
# pkg_add -r cvsup-without-gui
# mkdir /usr/ports
The first command CVSup install the software that runs under FreeBSD is the versioning of the port.
We shall now proceed to dell'alberatura updated population of ports:
# cvsup -L 2 -h cvsup9.FreeBSD.org /usr/share/examples/cvsup/ports-supfile
It often happens that, after several seconds of inactivity, the command returns an error of connection. Do not worry, in this case, wait a few seconds or try to change repository climbing 9 - theoretically the least used - to fall:
# cvsup -L 2 -h cvsup8.FreeBSD.org /usr/share/examples/cvsup/ports-supfile
# cvsup -L 2 -h cvsup7.FreeBSD.org /usr/share/examples/cvsup/ports-supfile
# cvsup -L 2 -h cvsup6.FreeBSD.org /usr/share/examples/cvsup/ports-supfile
# cvsup -L 2 -h cvsup5.FreeBSD.org /usr/share/examples/cvsup/ports-supfile
# cvsup -L 2 -h cvsup4.FreeBSD.org /usr/share/examples/cvsup/ports-supfile
[...]
By repeating this simple operation whenever we want to make a full upgrade of ports have always available updated software for our FreeBSD server. If we want to, for example, install the latest version of `mutt`, the renowned management program of e-mail from the command line, proceed as follows:
# cd /usr/ports
# make search name=Mutt
# cd mail/mutt
# make install clean
Done ... ![]()











