Question on updating pkg
Michael Gmelin
freebsd at grem.de
Tue Nov 26 22:11:47 UTC 2013
Maybe this has been answered before, but I stumbled over it numerous
times:
When pkg needs an update, it's performed first and pkg exits just ok,
but the original action wouldn't be done. This is a little bit
confusing when running it manually and potentially harmfully in a
scripted context.
Thanks,
Michael
Example:
$ sudo pkg install git
Updating repository catalogue
digests.txz
100% 996KB 996.1KB/s 996.1KB/s 00:01
packagesite.txz
100% 5555KB 5.4MB/s 3.8MB/s 00:01 Incremental update completed,
0 packages processed: 11200 packages updated, 709 removed and 135
added. New version of pkg detected; it needs to be installed first.
After this upgrade it is recommended that you do a full upgrade using:
'pkg upgrade'
The following 1 packages will be installed:
Upgrading pkg: 1.1.4_8 -> 1.1.4_10
The installation will require 2 kB more space
1 MB to be downloaded
Proceed with installing packages [y/N]: y
pkg-1.1.4_10.txz
100% 1649KB 1.6MB/s 1.6MB/s 00:01 Checking integrity... done
[1/1] Upgrading pkg from 1.1.4_8 to 1.1.4_10... done
$ git
bash: git: command not found
--
Michael Gmelin
More information about the freebsd-ports
mailing list