Solved Difference between port and package version

Hi!
I've installed Plex media server 10th November from package
Code:
# pkg info plexmediaserver

plexmediaserver-1.24.1.4931
Name           : plexmediaserver
Version        : 1.24.1.4931
Installed on   : Wed Nov 10 17:40:49 2021 MSK
Origin         : multimedia/plexmediaserver
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Categories     : multimedia
Licenses       :
Maintainer     : feld@FreeBSD.org
WWW            : https://plex.tv
Comment        : Plex Media Server component
Options        :
I checked port's version of Plex server at freshports.org today, and there is - 1.24.5.5173. How often are packages updated? Is there a repository with the latest packages?
 
By default, pkg uses the quarterly repository. This repository is only updated from ports every three months. Therefore, packages you get from there are usually "behind" what's available in the HEAD of the ports tree.

You can change the repository to use latest instead. See instructions in /etc/pkg/FreeBSD.conf:
Code:
# $FreeBSD$
# To disable this repository, instead of modifying or removing this file, create a /usr/local/etc/pkg/repos/FreeBSD.conf file:
#
#   mkdir -p /usr/local/etc/pkg/repos
#   echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf

FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
mirror_type: "srv",
signature_type: "fingerprints",
finterprints: "/usr/share/keys/pkg",
    enabled: yes
}

Edit: Wooohoo! Finally I was quicker than SirDice !
 
There's a quarterly package repository, that's set by default on all -RELEASE versions. The quarterly branch is branched off from main (aka latest) once every three months and only receives security and stability updates during that 3 month period.

I checked port's version of Plex server at freshports.org today,
Freshports actually shows which version is available in each repostory:
Code:
FreeBSD:13:amd64	1.24.5.5173	1.24.1.4931
So latest is at 1.24.5.5173, quarterly at 1.24.1.4931.
 
By default, pkg uses the quarterly repository. This repository is only updated from ports every three months. Therefore, packages you get from there are usually "behind" what's available in the HEAD of the ports tree.

You can change the repository to use latest instead. See instructions in /etc/pkg/FreeBSD.conf:
Code:
# $FreeBSD$
# To disable this repository, instead of modifying or removing this file, create a /usr/local/etc/pkg/repos/FreeBSD.conf file:
#
#   mkdir -p /usr/local/etc/pkg/repos
#   echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf

FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
mirror_type: "srv",
signature_type: "fingerprints",
finterprints: "/usr/share/keys/pkg",
    enabled: yes
}

Edit: Wooohoo! Finally I was quicker than SirDice !
I think that would completely disable the repository.

To use 'latest' instead of 'quarterly' you need to override the default repository URL by putting the following in /usr/local/etc/pkg/repos/FreeBSD.conf:
Code:
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
}
 
I think that would completely disable the repository.

To use 'latest' instead of 'quarterly' you need to override the default repository URL by putting the following in /usr/local/etc/pkg/repos/FreeBSD.conf:
That is correct - I didn't mean to provide step-by-step instructions but rather point at the comment in that file regarding instructions of not modifying it but instead creating /usr/local/etc/pkg/repos.

Thank you for filling in the blanks :)
 
Back
Top