pkg does bad things after upgrade from 8.4 to 9.3

Rainer Duffner rainer at ultra-secure.de
Tue Sep 8 21:10:05 UTC 2015


> Am 08.09.2015 um 22:55 schrieb Michael B. Eichorn <ike at michaeleichorn.com>:
> 
> 
> 
> But you must reinstall everything. You upgraded your ABI going 8->9 so
> everything needs rebuilt/reinstalled. See next.
>> 


Exactly.
Or unpack the compat8x package by hand.
Or don’t delete the old libraries upon upgrading…


>> 
> 
> There is pkg-lock(8) but dont do it. You really need to upgrade it all
> for a major version change.
> 



The valid use-case for pkg-lock is (IMO) if you want to downgrade.
I follow the quarterly cuts of the ports-tree and build my own repo.
If I need to downgrade from Q3 to Q2, I usually lock pkg only and do a pkg upgrade -f
The lock „survives“ even the -f.
The previous pkg may have problems reading the new pkg database created by the new pkg….
Locking anything else besides pkg is just a way to get unhappy.

If you have more than a handful machines or are not content with the packages provided by FreeBSD, running your own repo is a must IMO.

For our Ubuntu and CentOS-servers at work, we don’t do the builds ourselves  - but we still run our own mirror that is updated at our own schedule (so that servers are on a defined patch-level).






More information about the freebsd-stable mailing list