If you mistakenly add a word after the command 'pkg version', like 'pkg version foobargazonk', you don't get any syntax/usage error. Instead the command takes a _long_ time to execute. I get between 1 to 10 seconds between each line of output. Example: # pkg version foobargazonk <1s> GeoIP-1.6.5 > <2s> ImageMagick-6.9.0.10,1 > <10s> ORBit2-2.14.19_1 = <2s> adns-1.5.0 > Without the word "foobargazonk", the output quick. I guess you should show an error/usage warning and then bail if the index "foobargazonk" does not exist instead of repeatedly trying to find it (or whatever is the cause of the slowness). PS. On another machine (with only one repo and no DNS resolving), the command executes swiftly, so perhaps the delay only happen on machines with multiple repos? The machine uses two repos: # cat /usr/local/etc/pkg/repos/FreeBSD.conf FreeBSD: { enabled: yes, priority: 1 } # cat /usr/local/etc/pkg/repos/foo.conf foo: { url: "pkg+http://blahblah/93amd64-default/", mirror_type: "srv", enabled: yes, priority: 15 } # cat /usr/local/etc/pkg.conf PKG_DBDIR: /var/db/pkg PKG_CACHEDIR: /var/cache/pkg PORTSDIR: /usr/ports PKG_ENV: { http_proxy: "http://10.10.10.10:8080", } CONSERVATIVE_UPGRADE: YES /Elof
Just an update: pkg v1.5.4 still behave like this. 'pkg version' give rapid results. 'pkg version -R' give rapid results. 'pkg version foobargazonk' give no warning and takes some time for each line of output.
Maintainer feedback, please (resp. close if outdated).
fix in the git, will be in the next release, thank you for reporting https://github.com/freebsd/pkg/commit/38c0a4af62a8ebfdf108d8df6c8dadb21512e137