Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Julia, How do you check, list, update your packages?

Tags:

I'm wondering if there are utility commands in Julia that perform simple package management operations, such as:

  • List a single or all packages installed
  • Upgrade a single or all packages installed
  • Remove a package or all packages
  • Clean up package remnants

These are commands that I frequently use in yarn or homebrew for example and I was wondering if there were equivalents in Julia?

like image 356
esd100 Avatar asked May 27 '17 18:05

esd100


People also ask

How do I check my package in Julia?

Julia provides Pkg. status() function to print the list of all the installed packages. This is useful when we want to know whether the package you wish to use is installed or not. At the point when the Pkg order is run interestingly, the package directory is naturally made.

Where are packages installed in Julia?

Your package requirements are in the file ~/. julia/v0.

How do I open package manager in Julia?

Enter the Pkg REPL by pressing ] from the Julia REPL. To get back to the Julia REPL, press backspace or ^C.

How do I add multiple packages to Julia?

You can use Pkg to install multiple packages (https://github.com/JuliaLang/julia/issues/19591). For instance: Pkg. add(["Combinatorics", "TaylorSeries"]) . If your list sits in a text file, you can just load it and pass it to Pkg.


1 Answers

using Pkg Pkg.update() Pkg.status() Pkg.rm("PackageName") 

This is all in the Julia manual.

like image 160
Chris Rackauckas Avatar answered Sep 23 '22 07:09

Chris Rackauckas