A package provides add-on functionality to a language. Julia comes with a pre-installed package manager to install packages. We can find the registered Julia packages at Julia Package Server.
We can remove all the dependencies of a package in Julia using the method rm()
provided by the Pkg
module.
Pkg.rm("provide module name here")
This method takes the package name as a parameter.
Let's take a look at an example of this.
In this example, we will remove the package XLSX
and its dependencies.
juliausing PkgPkg.rm("XLSX")
We follow the commands below to remove the dependencies of a package.
Enter into Julia's prompt with the command julia
.
Use the package Pkg
module with the command using Pkg
.
Remove the dependencies of the package using the command Pkg.rm()
.
Free Resources