Таки придется зачитать куски из handbook, так как мне удобней инглиш, то на нем:If you know the exact name of the port, but just need to find out which category it is in, you can use the whereis(1) command. Simply type whereis file, where file is the program you want to install. If it is found on your system, you will be told where it is, as follows:
# whereis lsof
lsof: /usr/ports/sysutils/lsof
Итого стоит попробовать сделать whereis glib
The FreeBSD web site maintains an up-to-date searchable list of all the available applications, at http://www.FreeBSD.org/ports/. The ports are divided into categories, and you may either search for an application by name (if you know it), or see all the applications available in a category.
Поиск(http://www.freebsd.org/cgi/ports.cgi?query=glib&stype=name&s...) на этом сайте дает нам в категории devel(то есть /usr/ports/devel/glib)
glib-2.18.4
Some useful routines of C programming (current stable version)
Long description : Sources : Changes : Download
Maintained by: gnome@FreeBSD.org
Requires: gettext-0.17_1, gmake-3.81_3, libiconv-1.11_1, libtool-1.5.26, pcre-7.8, perl-5.8.9_1, pkg-config-0.23_1, python25-2.5.2_3
Как видим версия подходит.
Еще и такой способ есть
Yet another way to find a particular port is by using the Ports Collection's built-in search mechanism. To use the search feature, you will need to be in the /usr/ports directory. Once in that directory, run make search name=program-name where program-name is the name of the program you want to find. For example, if you were looking for lsof:
# cd /usr/ports
# make search name=lsof
Port: lsof-4.56.4
Path: /usr/ports/sysutils/lsof
Info: Lists information about open files (similar to fstat(1))
Maint: obrien@FreeBSD.org
Index: sysutils
B-deps:
R-deps:
Ну а теперь переходим к самому интересному, утилитам для апгрейда портов:
The portupgrade utility is designed to easily upgrade installed ports. It is available from the ports-mgmt/portupgrade port. Install it like any other port, using the make install clean command:
# cd /usr/ports/ports-mgmt/portupgrade
# make install clean
When you run portupgrade -a, portupgrade will begin to upgrade all the outdated ports installed on your system. Use the -i flag if you want to be asked for confirmation of every individual upgrade.
# portupgrade -ai
If you want to upgrade only a certain application, not all available ports, use portupgrade pkgname. Include the -R flag if portupgrade should first upgrade all the ports required by the given application.
# portupgrade -R firefox
Для вас соответственно portupgrade -R pango или portupgrade -R cacti
Portmanager is another utility for easy upgrading of installed ports. It is available from the ports-mgmt/portmanager port:
# cd /usr/ports/ports-mgmt/portmanager
# make install clean
All the installed ports can be upgraded using this simple command:
# portmanager -u
Portmanager can also be used to install new ports on the system. Unlike the usual make install clean command, it will upgrade all the dependencies prior to building and installing the selected port.
# portmanager x11/gnome2
для вас portmanager net-mgmt/cacti
If there are any problems regarding the dependencies for the selected port, you can use Portmanager to rebuild all of them in the correct order. Once finished, the problematic port will be rebuilt too.
# portmanager graphics/gimp -f
Вопрос, что вам мешало прочитать эти странички самостоятельно?