DUB-INSTALL(1)
π DUB-INSTALL(1) β the dub girlie's guide
okay bestie, welcome to DUB-INSTALL(1) from The D Language Foundation β it's the page about the dub command, aka the Package and build management system for D. yes that's the NAME section, we're doing this properly β¨
πΈ SYNOPSIS πΈ
dub install <package>[@<version-spec>] OPTIONS...
that's it, that's the whole vibe. package, maybe a version spec in brackets, and then OPTIONS screaming at the end. slay.
π¦ DESCRIPTION π¦
Note: use dub add <dependency> if you literally just want to use some package as a dependency β you do not have to explicitly fetch packages for that. fr fr.
so like. when do you actually need this? only when you wanna explicitly retrieve or remove packages and drop them somewhere that several applications can all share. that's the whole niche. if you just have a dependency to add, go use the add command, and Dub will handle the rest for you, no cap. it's giving "let him cook" π
if you don't pass any options at all, the placement/removal defaults to a user wide shared location. cute, predictable, we love that for us π
and bestie, you can grab and run whole complete applications super easily, like:
$ dub fetch vibelog --cache=local
$ dub run vibelog --cache=local
this will grab all the needed dependencies and compile and run the application. main character energy tbh π
Note: DUB does not do a system installation of packages. periodt. packages are instead only registered within DUB's internal ecosystem. generation of native system packages/installers may be added later as a separate feature β so don't come for DUB about your system package manager, it said what it said.
β¨ OPTIONS β¨
--version=VALUEβ use the specified version/branch instead of the latest available match. π« and btw, the remove command also accepts"*"here as a wildcard to remove all versions of the package from the specified location. wildcard removal, iconic.--force-removeβ deprecated option that does nothing. literally nothing. it's a decorative flag bestie, a little ghost π»
π FILES π
dub.sdldub.json
those two files, always showing up, always the moment π«Ά
π AUTHOR π
Copyright (c) 1999-2021 by The D Language Foundation
π ONLINE DOCUMENTATION π
http://code.dlang.org/docs/commandlinehttp://code.dlang.org/docs/commandline
(yes it's doubled up like that in the original, i'm not touching it, i don't make the rules π)
π§ SEE ALSO π§
okay that's the page!! tysm for reading, go install something responsibly π
The D Language Foundation β 2021-11-09 β mwah, bye bestie ππ
π¦ where this page comes from
- ubuntu jammy: dub 1.27.0-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms