no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | freebsd_ports [2013/07/11 20:24] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== FreeBSD Ports ====== | ||
+ | * [[FreeBSD]] | ||
+ | * [[FreeBSD Knobs]] | ||
+ | * [[FreeBSD Packages]] | ||
+ | * [[FreeBSD Ports Upgrades]] | ||
+ | |||
+ | * [[http:// | ||
+ | |||
+ | == Download ports tree == | ||
+ | |||
+ | < | ||
+ | portsnap fetch | ||
+ | portsnap extract | ||
+ | </ | ||
+ | |||
+ | == Update ports tree == | ||
+ | |||
+ | < | ||
+ | portsnap fetch | ||
+ | portsnap update | ||
+ | </ | ||
+ | |||
+ | == Upgrading packages installed with ports == | ||
+ | |||
+ | List outdated ports: | ||
+ | |||
+ | < | ||
+ | pkg_version -v | ||
+ | pkg_version -vIL= | ||
+ | </ | ||
+ | |||
+ | Install portmaster. | ||
+ | |||
+ | < | ||
+ | cd / | ||
+ | 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 | ||
+ | </ | ||
+ | |||
+ | == Find the location of a port == | ||
+ | |||
+ | < | ||
+ | whereis name | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | ls / | ||
+ | </ | ||
+ | |||
+ | == Download port distfiles == | ||
+ | |||
+ | < | ||
+ | make fetch | ||
+ | </ | ||
+ | |||
+ | == Uninstall a port == | ||
+ | |||
+ | < | ||
+ | make deinstall | ||
+ | </ | ||
+ | |||
+ | == Reinstall a port after it's been built == | ||
+ | |||
+ | < | ||
+ | make reinstall | ||
+ | </ | ||
+ | |||
+ | == Create a list of all ports == | ||
+ | |||
+ | < | ||
+ | find /usr/ports/ -type d -mindepth 2 -maxdepth 2 | grep -v CVS | grep -v Tools | sed -e ' | ||
+ | </ | ||
+ | |||
+ | == List installed packages == | ||
+ | |||
+ | < | ||
+ | pkg_info | ||
+ | </ | ||
+ | |||
+ | == Update search ports index == | ||
+ | |||
+ | < | ||
+ | cd /usr/ports && make index | ||
+ | </ | ||
+ | |||
+ | == Search ports == | ||
+ | |||
+ | < | ||
+ | cd /usr/ports | ||
+ | make search name=< | ||
+ | make search key=< | ||
+ | </ | ||
+ | |||
+ | == Display out of date packages == | ||
+ | |||
+ | < | ||
+ | pkg_version -v | ||
+ | </ | ||
+ | |||
+ | == Package configuration == | ||
+ | |||
+ | Modify configuration: | ||
+ | |||
+ | < | ||
+ | make config | ||
+ | </ | ||
+ | |||
+ | Output configuration settings: | ||
+ | |||
+ | < | ||
+ | make showconfig | ||
+ | </ | ||
+ | |||
+ | Reset configuration: | ||
+ | |||
+ | < | ||
+ | make rmconfig | ||
+ | </ | ||
+ | |||
+ | == Build with default options == | ||
+ | |||
+ | < | ||
+ | make -DBATCH | ||
+ | </ | ||
+ | |||
+ | == Build with specific options == | ||
+ | |||
+ | < | ||
+ | make -DBATCH -DWITHOUT_FOO -DWITH_BAR | ||
+ | </ | ||
+ | |||
+ | == Install Kernel Sources == | ||
+ | |||
+ | < | ||
+ | cd / | ||
+ | svn checkout http:// | ||
+ | </ | ||
+ | |||
+ | == cron == | ||
+ | |||
+ | Tell cron to check for release updates nightly. | ||
+ | |||
+ | < | ||
+ | echo "# Security updates" | ||
+ | echo " | ||
+ | </ | ||
+ | |||
+ | == Run make clean on all dependencies == | ||
+ | |||
+ | < | ||
+ | make clean-depends | ||
+ | </ |