How to update a package?

julia> Pkg.update("thepackage")
ERROR: UndefVarError: `Pkg` not defined
Stacktrace:
 [1] top-level scope
   @ REPL[38]:1

What is the correct way?

You need to import Pkg or using Pkg just like with any other package you want to access.

1 Like