pkg install specificity varies

Why is it that some packages require full versions and others do not? I'll use gleam and erlang here as examples, but it's a general question...

Summary

* gleam can be installed via 'sudo pkg install gleam', no version required
* erlang can not be installed via 'sudo pkg install erlang', and requires the FULL version, e.g. 'sudo pkg install erlang-28.5.0.8,4'

Repro

gleam
Code:
toddg@builder ~ $ sudo pkg install gleam
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed

I'll elide the updating ports catalog lines below...

erlang
Code:
toddg@builder ~ $ sudo pkg install erlang-28
...
pkg: No packages available to install matching 'erlang-28' have been found in the repositories


toddg@builder ~$ sudo pkg install erlang-28.5
...
pkg: No packages available to install matching 'erlang-28.5' have been found in the repositories


toddg@builder ~ $ sudo pkg install erlang-28.5.0
...
pkg: No packages available to install matching 'erlang-28.5.0' have been found in the repositories

toddg@builder ~ $ sudo pkg install erlang-28.5.0.8
...
pkg: No packages available to install matching 'erlang-28.5.0.8' have been found in the repositories

toddg@builder ~ $ sudo pkg install erlang-28.5.0.8,4
...
The most recent versions of packages are already installed

So for erlang, I had to specify the full version. IIRC, in the past, I've been able to install erlang with just the major version, e.g. 'erlang-28'...
 
Try
pkg search erlang
to find all related packages to see which version is currently going to be installed by pkg.
Erlang-28 is not a package. Use the name only or the full version as your pkg lists it.
My version is now 28.5.0.8,4. Command: pkg install erlang installs it.
 
Back
Top