I am running a dual repository setup with FreeBSD-latests and a custom Synth repo. I noticed that when running
Reading the pkg man page, I found the CONSERVATIVE_UPGRADE option which seems to address exactly my need and allow a newer package version to be installed during an upgrade even if coming from a different repo. However setting CONSERVATIVE_UPGRADE to false does not change
The workaround for now is to run
Am I missing something here? How are those of you with multiple repositories dealing with upgrades?
Output of my pkg config below if needed.
pkg upgrade
, even though my custom Synth repo has newer version of the packages available they are not upgraded. It appears this is only the case if the package was originally installed from the FreeBSD repo.Reading the pkg man page, I found the CONSERVATIVE_UPGRADE option which seems to address exactly my need and allow a newer package version to be installed during an upgrade even if coming from a different repo. However setting CONSERVATIVE_UPGRADE to false does not change
pkg upgrade
behaviour.The workaround for now is to run
pkg upgrade -r Synth
which then upgrades to the newer version of the packages. Concern is that in the future a newer version of the upgraded packages may come from the FreeBSD repo and be ignored.Am I missing something here? How are those of you with multiple repositories dealing with upgrades?
Output of my pkg config below if needed.
Code:
Version : 1.11.1
PKG_DBDIR = "/var/db/pkg";
PKG_CACHEDIR = "/var/cache/pkg";
PORTSDIR = "/usr/ports";
INDEXDIR = "";
INDEXFILE = "INDEX-12";
HANDLE_RC_SCRIPTS = true;
DEFAULT_ALWAYS_YES = false;
ASSUME_ALWAYS_YES = false;
REPOS_DIR [
"/etc/pkg/",
"/usr/local/etc/pkg/repos/",
]
PLIST_KEYWORDS_DIR = "";
SYSLOG = true;
ABI = "FreeBSD:12:amd64";
ALTABI = "freebsd:12:x86:64";
DEVELOPER_MODE = false;
VULNXML_SITE = "http://vuxml.freebsd.org/freebsd/vuln.xml.bz2";
FETCH_RETRY = 3;
PKG_PLUGINS_DIR = "/usr/local/lib/pkg/";
PKG_ENABLE_PLUGINS = true;
PLUGINS [
]
DEBUG_SCRIPTS = false;
PLUGINS_CONF_DIR = "/usr/local/etc/pkg/";
PERMISSIVE = false;
REPO_AUTOUPDATE = true;
NAMESERVER = "";
HTTP_USER_AGENT = "pkg/1.11.1";
EVENT_PIPE = "";
FETCH_TIMEOUT = 30;
UNSET_TIMESTAMP = false;
SSH_RESTRICT_DIR = "";
PKG_ENV {
}
PKG_SSH_ARGS = "";
DEBUG_LEVEL = 0;
ALIAS {
}
CUDF_SOLVER = "";
SAT_SOLVER = "";
RUN_SCRIPTS = true;
CASE_SENSITIVE_MATCH = false;
LOCK_WAIT = 1;
LOCK_RETRIES = 5;
SQLITE_PROFILE = false;
WORKERS_COUNT = 0;
READ_LOCK = false;
PLIST_ACCEPT_DIRECTORIES = false;
IP_VERSION = 0;
AUTOMERGE = true;
VERSION_SOURCE = "";
CONSERVATIVE_UPGRADE = true;
PKG_CREATE_VERBOSE = false;
AUTOCLEAN = false;
DOT_FILE = "";
REPOSITORIES {
}
VALID_URL_SCHEME [
"pkg+http",
"pkg+https",
"https",
"http",
"file",
"ssh",
"ftp",
"ftps",
"pkg+ssh",
"pkg+ftp",
"pkg+ftps",
]
ALLOW_BASE_SHLIBS = false;
WARN_SIZE_LIMIT = 1048576;
METALOG = "";
OSVERSION = 1200086;
IGNORE_OSVERSION = false;
Repositories:
FreeBSD: {
url : "pkg+http://pkg.FreeBSD.org/FreeBSD:12:amd64/latest",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
Synth: {
url : "http://192.168.1.99/live_packages/",
enabled : yes,
priority : 10,
mirror_type : "HTTP",
fingerprints : "/usr/share/keys/pkg"
}