pkgng behaviour change (upgrade -f and version)

Adam McDougall mcdouga9 at egr.msu.edu
Fri Jul 19 14:08:58 UTC 2013


On 07/04/13 04:16, bw.mail.lists wrote:
> I'm not sure when it happened, I think since latest pkgng upgrade,
> version 1.1.3, but pkgng now acts differently in at least two cases.
> 
> 1. pkg upgrade -f
> What happens:
> 
> -----------------
> /root # pkg upgrade -f
> Updating repository catalogue
> 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'
> 
> Uprgades have been requested for the following 1 packages:
> 
>         Reinstalling pkg-1.1.3_1
> 
> 0 B to be downloaded
> 
> Proceed with upgrading packages [y/N]: n
> -----------------
> 
> What I expected to happen (man page quote):
> -f  Force reinstalling/upgrading the whole set of packages
> 
> Problem:
> Not sure how to upgrade everything now.
> 
> 2. pkg version
> What happens:
> 
> -----
> /root # pkg version -vRL=
> Updating repository catalogue
> /root #
> -----
> 
> What I expected to happen:
> 
> -----
> /root # pkg version -vRL=
> /root #
> -----
> 
> Problem:
> I have this in crontab:
> 
> pkg update -q && pkg version -vRL=
> 
> Previously I would get no email unless updates are needed. Now I get
> emails about updating catalogue repository. Passing -q to 'pkg version'
> doesn't suppress the message either. I'm not sure what -q would
> suppress, but I don't think I want it, I was fine with the way it was
> before. I can 'grep -v' that line out, but I assume that's not the
> intended behavior, is it?
> 

I'm not sure if you are following the pkg at freebsd.org mailing list, but
I had a related issue and forwarded your message there.  It is fixed in
1.1.4.


More information about the freebsd-ports mailing list