From LedHed's Wiki
Revision as of 19:22, 1 October 2009 by Ledhed (Talk | contribs)

Jump to: navigation, search

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