portsnap fetch portsnap extract
portsnap fetch portsnap update
List outdated ports:
pkg_version -v pkg_version -vIL=
Install portmaster. Portmaster is designed to use the base system of FreeBSD.
cd /usr/ports/ports-mgmt/portmaster make install
List all installed software and search for updates:
portmaster -L
Upgrade all ports at once:
portmaster -a
Use portmaster to install a package, and upgrade all dependencies if necessary:
portmaster shells/bash
whereis name
ls /usr/ports/*/name
make fetch
make deinstall
make reinstall
find /usr/ports/ -type d -mindepth 2 -maxdepth 2 | grep -v CVS | grep -v Tools | sed -e 's/\/usr\/ports\///g' > ~/all-ports
pkg_info
cd /usr/ports && make index
cd /usr/ports make search name=<name> make search key=<key>
pkg_version -v
Modify configuration:
make config
Output configuration settings:
make showconfig
Reset configuration:
make rmconfig
make -DBATCH
make -DBATCH -DWITHOUT_FOO -DWITH_BAR
cd /usr/ports/devel/subversion && make install svn checkout http://svn.freebsd.org/base/stable/9 /usr/src
Tell cron to check for release updates nightly. The system will send an email if there are any to apply.
echo "# Security updates" >> /etc/crontab echo "@daily root freebsd-update cron" >> /etc/crontab
make clean-depends