After adding a package, e.g. MarketData, with:
Pkg.add("MarketData")
which also installs dependencies:
INFO: Installing BufferedStreams v0.4.0
INFO: Installing Codecs v0.4.0
...
how can I remove or uninstall the package and all its dependencies?
When you decide that you don't want to have a package around any more, you can use Pkg. rm() to remove the requirement for it from the REQUIRE file: julia> Pkg. rm("Distributions") INFO: Removing Distributions v0.
To remove a dev dependency, you need to attach the -D or --save-dev flag to the npm uninstall, and then specify the name of the package. You must run the command in the directory (folder) where the dependency is located.
The first “rpm -qa” lists all RPM packages and the grep finds the package you want to remove. Then you copy the entire name and run the “rpm -e –nodeps” command on that package. It will, without prompting for confirmation, remove that package but none of its dependencies.
From the documentation:
Pkg.rm("MarketData")
rm(pkg)
Remove all requirement entries for
pkg
fromPkg.dir("REQUIRE")
and callPkg.resolve()
.
This also removes dependencies:
INFO: Removing BufferedStreams v0.4.0
INFO: Removing Codecs v0.4.0
...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With