From LedHed's Wiki
| Line 2: | Line 2: | ||
Portsnap is used to update the FreeBSD ports tree | Portsnap is used to update the FreeBSD ports tree | ||
| − | |||
portsnap fetch | portsnap fetch | ||
| + | This will fetch a new copy of the ports tree | ||
| + | portsnap extract | ||
This will extract the new tree to /usr/ports | This will extract the new tree to /usr/ports | ||
| − | |||
| Line 19: | Line 19: | ||
== Installing Ports == | == Installing Ports == | ||
cd /usr/ports/<CATEGORY>/<PORT> | cd /usr/ports/<CATEGORY>/<PORT> | ||
| − | make install | + | make install |
| − | + | If make config hasn't been run previously, then make config will also pop up. | |
== Removing Ports == | == Removing Ports == | ||
| Line 30: | Line 30: | ||
make config | make config | ||
make deinstall ;; make reinstall | make deinstall ;; make reinstall | ||
| + | make reinstall won't overwrite existing configs. | ||
| + | |||
== Clean Up == | == Clean Up == | ||
make clean | make clean | ||
| + | clears out the working directory | ||
== Resetting Configs == | == Resetting Configs == | ||
make rmconfig | make rmconfig | ||
| − | + | resets the make config back to default | |
[[Category:Ports]] | [[Category:Ports]] | ||
Revision as of 19:22, 1 October 2009
Contents
Portsnap
Portsnap is used to update the FreeBSD ports tree
portsnap fetch
This will fetch a new copy of the ports tree
portsnap extract
This will extract the new tree to /usr/ports
Finding Ports
find /usr/ports/ -name <NAME OF PORT>*
or
locate <NAME OF PORT>
Installing Ports
cd /usr/ports/<CATEGORY>/<PORT> make install
If make config hasn't been run previously, then make config will also pop up.
Removing Ports
cd /usr/ports/<CATEGORY>/<PORT> make deinstall
Making Changes / Reinstalling Ports
cd /usr/ports/<CATEGORY>/<PORT> make config make deinstall ;; make reinstall
make reinstall won't overwrite existing configs.
Clean Up
make clean
clears out the working directory
Resetting Configs
make rmconfig
resets the make config back to default