How do I install a package globally?

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Tue Nov 14 20:24:41 UTC 2023


On Saturday, 11 November 2023 at 23:28:18 UTC, Trevor wrote:
>
> Thanks for the detailed reply. I guess what I'd like to do is 
> not create a DUB package for every little project I work on. It 
> seems like most modern languages require a package/dependency 
> manager though. Being able to install libraries globally would 
> avoid this but I can how that can cause it's own set of issues. 
> It doesn't seem efficient in terms of bandwidth and hard disk 
> space to have a new copy of a library for each project that 
> uses it?

Dub has a local cache, so multiple projects don't download and 
take up additional space. There is also the --system option if 
you want to share cache with other users on the machine.


More information about the Digitalmars-d-learn mailing list