Re: pkg upgrade vs building from source

From: David Christensen <dpchrist_at_holgerdanske.com>
Date: Sat, 08 Oct 2022 21:40:38 UTC
On 10/8/22 08:35, paul beard wrote:
 > My skepticism over pkg doing what I expect grows after recent events.

 > I allowed [pkg] to upgrade postfix the other day and discovered that 
it no longer worked;

 > How do other people manage this?


I have operated a FreeBSD SOHO server 24x7 for 3+ years, starting with 
FreeBSD-11.2-RELEASE-amd64,  I strive to keep my systems as simple and 
"official" as possible.  I have never seen any problems that I could 
attribute to freebsd-update(1) or pkg(1).


My upgrade mantra is:

# freebsd-update fetch install

# pkg update

# pkg upgrade

# pkg autoremove

# pkg clean


On 10/8/22 13:18, paul beard wrote:
 > On 10/8/22 11:11, Graham Perrin wrote:
 >> Which version of FreeBSD, exactly?
 >>
 > FreeBSD www.paulbeard.org 12.3-RELEASE FreeBSD 12.3-RELEASE r371126 
GENERIC
 >   i386
 >
 >
 >> Packages from latest, or quarterly?
 >>
 > Hm…whatever pkg update pulls
 >>
 >> freebsd-version -kru ; uname -aKU
 >>
 > See above.


For comparison:

2022-10-08 14:03:04 toor@f3 ~
# freebsd-version -kru ; uname -aKU
12.3-RELEASE-p6
12.3-RELEASE-p6
12.3-RELEASE-p7
FreeBSD f3.tracy.holgerdanske.com 12.3-RELEASE-p6 FreeBSD 
12.3-RELEASE-p6 GENERIC  amd64 1203000 1203000


I do not see any freebsd-version(1) output in your output, above.


I do not see a patch level in your uname(1) output, above.


The most obvious difference is that you are running i386 and I am 
running amd64.  That is not supposed to matter.


 > pkg -vv | grep -e url -e enabled -e priority
 >
 >      url             : 
"pkg+http://pkg.FreeBSD.org/FreeBSD:12:i386/quarterly
 > ",
 >      enabled         : yes,
 >      priority        : 0,


For comparison:

2022-10-08 14:03:12 toor@f3 ~
# pkg -vv | grep -e url -e enabled -e priority
     url             : 
"pkg+http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly",
     enabled         : yes,
     priority        : 0,


David