pkg upgrade has no description of what -x does

Matthew Seaman matthew at FreeBSD.org
Sun May 12 16:17:08 UTC 2019


On 12/05/2019 16:37, tech-lists wrote:
> On Sun, May 12, 2019 at 02:59:17PM +0100, Matthew Seaman wrote:
> 
>> Good catch -- that's definitely an omission from the man page.
> 
> happy to help ;)
> 
> I found this on my way to trying to figure out how to get pkg upgrade to
> exclude a pattern from the upgrade. Is there a way? or does this break
> something else?

That's not really supported.  Partial upgrades are a bit of a mine-field
and can lead to your system getting into an inconsistent state with
broken functionality entirely possible.  Which isn't to say that you
absolutely /can't/ do a partial upgrade, just that you will need to
study exactly what pkg(8) proposes changing and understand how that
could affect other parts of your system.

The general recommendation is just to upgrade everything -- the package
repository will have been build as a self-consistent set of packages,
thus avoiding that particular pitfall.

What exactly are your reasons for avoiding upgrading some packages?  In
most cases there are work-arounds, including, but not limited to, just
waiting for a few days so that a fix can be committed to the ports and
an updated package set produced.

	Cheers,

	Matthew


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


More information about the freebsd-pkg mailing list