SOLVED A puzzling pkg problem

Joined
Jan 4, 2014
Messages
1,644
Consider the following jails that are the same patch level:

tn9.jpg


Entering the first jail, I'm looking for a specific package (Caddy):

Code:
root@truenas-l:/ # iocage console nextcloud
...
root@nextcloud:~ # pkg update
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
root@nextcloud:~ # pkg search caddy
caddy-2.3.0_1                  Fast, cross-platform HTTP/2 web server with automatic HTTPS
root@nextcloud:~ # exit
logout
root@truenas-l:/ #


Entering the second jail, I do the same thing:
Code:
root@truenas-l:/ # iocage console plex
...
root@plex:~ # pkg update
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
root@plex:~ # pkg search caddy
caddy-2.4.1                    Fast, cross-platform HTTP/2 web server with automatic HTTPS
root@plex:~ # exit
logout
root@truenas-l:/ #


When I check Caddy on FreshPorts, I see the following:

tn10.jpg


it appears that the quarterly release of Caddy is available in the first jail, whereas the latest release is available in the second jail. Any ideas on what I have to do in the first jail to make the latest version of Caddy available?
 
Last edited:

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
ee /etc/pkg/FreeBSD.conf

You can either pay attention to the header and create an override... /usr/local/etc/pkg/repos/FreeBSD.conf or just edit that file directly to reflect latest instead of quarterly.
 
Joined
Jan 4, 2014
Messages
1,644
Just a follow-up question before I mark this thread as solved... Why is the default position quarterly rather than latest? Wouldn't the latest be better patched?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Why is the default position quarterly rather than latest? Wouldn't the latest be better patched?
I guess the stability of the software is the focus rather than taking "just released" software which may still be buggy (but patch newer vulnerabilities if applicable).

The option is there to change it for each jail, so I guess a more stable default is not so bad.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Just a follow-up question before I mark this thread as solved... Why is the default position quarterly rather than latest? Wouldn't the latest be better patched?
Quarterly branches are supposed to provide some stability and do receive security patches according to the FreeBSD policy. That's why we use them in our hosting environment, for example.
 
Top