Links: Installing Applications: Packages and Ports: Using the Ports Collection.
Install Portsnap:
Get the ports collection and extract it.
# portsnap fetch extract
# portsnap fetch update
# whereis apache24
Example:
Install the Nano editor, go to ports directory;
# whereis apache24
Example:
Install the Nano editor, go to ports directory;
# cd /usr/ports/editors/nano && make install clean
Removing Installed Ports:
# cd /usr/ports/editors/nano
make deinstall
Check the listening ports:
# sockstat -4 -l
Upgrading Ports Using Portmaster:
ports-mgmt/portmaster is a very small utility for upgrading installed ports. It is designed to use the tools installed with the FreeBSD base system without depending on other ports or databases. To install this utility as a port:
# cd /usr/ports/ports-mgmt/portmaster
# make install clean
To list these categories and search for updates:
# portmaster -L
This command is used to upgrade all outdated ports
# portmaster -a
If errors are encountered during the upgrade process, add -f to upgrade and rebuild all ports:
# portmaster -af
Portmaster can also be used to install new ports on the system, upgrading all dependencies before building and installing the new port. To use this function, specify the location of the port in the Ports Collection:
# portmaster shells/bash
Upgrading Ports Using Portupgrade:
# cd /usr/ports/ports-mgmt/portupgrade
# make install clean
No comments:
Post a Comment