pkgng Beta

This gives you completion based on package origin for installed packages (or just the full package name if you drop the -o option) in tcsh(1), I'm sure you can whip up something similar for other shells using the same idea:

Code:
complete portmaster 'p/1/`pkg info -qao`/'
 
kpa said:
This gives you completion based on package origin for installed packages (or just the full package name if you drop the -o option) in tcsh(1), I'm sure you can whip up something similar for other shells using the same idea:

Code:
complete portmaster 'p/1/`pkg info -qao`/'

This should be of course:

Code:
complete portmaster 'p/*/`pkg info -qao`/'

With the asterisk completion works on all parameters for portmaster
 
What happens if you run "make install" to install ports on a system with pkgng? Will the installation be registered in the old database or the pkgng database? Portmaster seems to be mentioned now and then; is it currently best to install new ports using it in the patched version that is pkgng aware?
 
If you have WITH_PKGNG=1 in /etc/make.conf the files installed by the port will be registered in the pkgng database. Otherwise the old pkg tools will be used. If you use ports-mgmt/portmaster with pkgng the patch is mandatory because without patch it will use the old pkg tools to query the package database and won't be aware of packages installed with pkgng.
 
Back
Top