https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274989

            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: b...@freebsd.org
          Reporter: drq...@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
            “active” status from repo.conf.

Man pkg-upgrade shows this:

     -r reponame, --repository reponame
                 Install packages from only the named repository, irrespective
                 of the configured “active” status from repo.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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to