DUB-INSTALL(1)

πŸ“¦
version 1.27.0 Β· 2 versions
, in ubuntu jammy

πŸ’… 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.sdl
  • dub.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