pkgng behaviour change (upgrade -f and version)

Bryan Drewery bdrewery at FreeBSD.org
Fri Jul 5 12:59:29 UTC 2013


On 7/4/2013 3:23 PM, Adam McDougall wrote:
> (changed list to pkg at freebsd.org)
> 
> 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.
>>
> I experienced this as well on 1.1.3_1, when using pkg install -fR perl. 
> As long as I use -f, it ignores what I ask for every single time and
> tries to reinstall pkg instead.  I encountered this on a system that had
> broken perl modules due to the 5.16.3 upgrade, so I was going to force
> upgrade everything that depends on perl.

Thanks for reporting. I had fixed the 'pkg upgrade -f' issue for
upcoming 1.1.4, but was not aware of the 'pkg install -Rf' issue having
the same problem.

I have logged it at https://github.com/freebsd/pkg/issues/530 and will
address for 1.1.4


-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-pkg/attachments/20130705/bb6cd518/attachment.sig>


More information about the freebsd-pkg mailing list