Suppose there is not enough space in /usr to update the ports tree.
( I imagine other reasons exist for the use of the code below)
As a bonus, it will probably run alphabetically so one can see its progress (though take
a looong time...) I would caution against using this one-liner where there are very many
ports installed.
( I imagine other reasons exist for the use of the code below)
Code:
# run from the [FILE]/usr/ports[/FILE] where there exists a [FILE]supfile.file[/FILE]
for f in $(pkg_info -o /var/db/pkg/* | grep "/" ); do (csup -g -L 2 -i ports/"$f" supfile.file ); done
As a bonus, it will probably run alphabetically so one can see its progress (though take
a looong time...) I would caution against using this one-liner where there are very many
ports installed.