Tuesday, September 02, 2008

FreeBSD: Port's Foo

I have learned a few new tricks about using FreeBSD ports which I don't know last time, there you go!

For ports which provides configure options, you can actually configure it via -

shell>make config

To show the configuration -

shell>make showconfig

To remove current configuration, or reset it to default -

shell>make rmconfig

To build the package from port -

shell>make package

To build the package from port for its dependencies as well -

shell>make package-recursive

If you have the port previously installed, and you want to reinstall with different option set, make sure you have the "work" directory deleted in particular port or else the new configure option won't be used.

Enjoy ;]

4 comments:

psyber said...

more to add :

- clean up all temp files : "make clean" (at /usr/ports/, it takes a long time).

- disable ports auditing that prevent installation to continue, "export DISABLE_VULNERABILITIES=true" then run the "make install clean" again.

- to downgrade a port install port "portdowngrade" at " /usr/ports/ports-mgmt/portdowngrade/".

Anonymous said...

hi bro, did you give talk at recent i-hack?i saw your name in their tentative..

C.S.Lee(geek00L) said...

hi psyber,

Thanks ;]

hi anonymous,

yes, I gave talk in i-hack previously.

Anonymous said...

damnnnn..i miss it...only manage to go during boring forum on saturday..could you upload your presentation man..really appreciate it..