Date: Thu, 09 Nov 2023 14:31:12 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 274989] pkg --repository option only works if repo is enabled - contrary to man page description Message-ID: <bug-274989-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274989 Bug ID: 274989 Summary: pkg --repository option only works if repo is enabled - contrary to man page description Product: Base System Version: 14.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: drq883@gmail.com I have two repo config files in /usr/local/etc/pkg/repos: % cat release_0.conf release_0: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/release_0", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", enabled: yes } % cat latest.conf latest: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", enabled: no } I only want to use the latest repo for upgrading things to the latest. Otherwise I want things to use a "frozen repo" that doesn't change. man pkg-update shows this: -r reponame, --repository reponame Download the catalogue for the named repository only. This will update only the named repository, irrespective of the configured =E2=80=9Cactive=E2=80=9D status from repo.conf. Man pkg-upgrade shows this: -r reponame, --repository reponame Install packages from only the named repository, irrespect= ive of the configured =E2=80=9Cactive=E2=80=9D status from rep= o.conf. This is not true. The repos have to be enabled in order for it to work. The only way around this is to enable the repo, do the update/upgrade, then disable the repo. I've tested this on 13.2, and on 14-STABLE. Both exhibit the same behavior. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274989-227>