Quote:
Originally Posted by pawaan
I upgraded NetBSD 6.0 to 6.0.1 , changed PKG_PATH to 6.0_2012Q4 but when I did pkg_add -uu the package upgrade didn't take place (missing package names)
What's the right way to upgrade all installed packages ?
|
You need to put the package names on the command line, to tell it which ones you want to install/upgrade. For example
# pkg_add -uv firefox lynx
Minor point: did you really mean to type -u
u instead of -u
v ? I don't see anything in the man page
pkg_add(1) about doubling the -u (on a quick check).
If you want to upgrade all packages, you could list the ones you have installed on the command line, after removing the version number so it will look for the latest. For example
# pkg_add -uv $( cd /var/db/pkg; ls -1 | fgrep -v pkgdb.byfile.db | sed 's/-[^-]*$//' )
Hopefully that will work.