How to download and setup dub
Open terminal and run command
git clone https://github.com/dlang/dub.git
git clone is used to create a copy or clone of dub repositories.
You pass git clone a repository URL. it supports a few different network protocols and corresponding URL formats.
Also you may download zip file with dub https://github.com/dlang/dub/archive/master.zip
Or simply clone dub with SSH
[email protected]:dlang/dub.git