Question on updating pkg
Baptiste Daroussin
bapt at FreeBSD.org
Tue Nov 26 23:41:48 UTC 2013
On Tue, Nov 26, 2013 at 11:05:07PM +0100, Michael Gmelin wrote:
> 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
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
This has been addressed by pkg 1.2, now the process initially asked for is
automatically restarted,
regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20131127/94608b11/attachment.sig>
More information about the freebsd-ports
mailing list