View Single Post
  #9   (View Single Post)  
Old 15th March 2013
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Quote:
Originally Posted by pawaan View Post
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 -uu instead of -uv ? 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.
Reply With Quote