Flags question

After 6 moths on military I am back :) The problem is that I forgot simple things after so much time without computer! So my first question is, How can I run
Code:
make config
for all my installed packages?
 
Welcome back!

Why would you want to run make config for every installed port?

But it can be done. (Tested.)
Code:
#!/bin/sh
for pkg in `pkg_info -o -q \*`; do
  make -C "/usr/ports/$pkg" config
done
 
If it's that messy it's usually simpler just to do a pkg_delete -a and start over.

Either that or you need to carefully read /usr/ports/UPDATING.
 
portmaster(8) has a procedure for reinstalling everything. The hard part of doing it by hand is figuring out the bare minimum of what needs to be installed without having to manually install dependencies, but portmaster --list-origins helps with that.
 
Starting over will really save you a lot of hassle. If you want to see make config for each port, either force it using a portmaster flag, or simply nuke /var/db/ports/.
 
Back
Top