St PKG_NAME does not show version for some packages

To check the version of an installed package, I do pkg> st PKG_NAME. For example,

(@v1.7) pkg> st BenchmarkTools
      Status `~/.julia/environments/v1.7/Project.toml`
  [6e4b80f9] BenchmarkTools v1.2.0

shows that the version of BenchmarkTools package is 1.2.0.

However, for some packages, this trick does not show the version. Here is an example for Downloads:

(@v1.7) pkg> st Downloads
      Status `~/.julia/environments/v1.7/Project.toml`
  [f43a241f] Downloads

Why is this so, and how can I display the version of the package showing this behavior?

This is because in Julia 1.7, Downloads is a standard library (stdlib) that is part of Julia itself, and thus it does not make sense to talk about the version numbers of Downloads.

4 Likes