Activating and adding the packages in new folder only include the project and Manifest toml files

Hello, so I want to ask some questions as I didn’t find answer to these.

  1. When I try to remove the Package that I installed before, it says it removed it. but when I go to the folder of packages that package exists in it. when I try to install again. It doesn’t download from the internet but rather from the same folder. Why is that?
  2. When A package installs it installs other packages like CSV, DataFrames etc. but When I try to use those it says doesn’t found. Why I have to download them again as it is taking much higher space?
  3. When we update any package the previous package files doesn’t get deleted just new files add up and taking so much space and I have to manually delete them. Why is that?
  4. Activating and adding the packages in new folder only include the project and Manifest toml files. where does the packages go then ? If It stores it in the package folder then what is the purpose of having different evironments for julia or creating new environments if it will be storing the packages in same package folder?

Packages are installed in the folder .julia/packages in your home folder. If they rely on artifiacts those are installed in .julia/artifacts.

To delete unused packages type:

using Pkg
Pkg.gc()

This also happens automatically, but not very often.

You do not have to download them again. Just add them to your project and they are immediately available. If they are downloaded again that means a newer version is available and gets automatically downloaded and installed. You can avoid that by freezing your current package version in Project.toml.

1 Like