How To Install dub on Fedora 36

In this tutorial we learn how to install dub in Fedora 36. dub is Package and build management system for D

Introduction

In this tutorial we learn how to install dub on Fedora 36.

What is dub

DUB is a package and build manager for D applications and libraries.

We can use yum or dnf to install dub on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install dub.

Install dub on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install dub using dnf by running the following command:

sudo dnf -y install dub

Install dub on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install dub using yum by running the following command:

sudo yum -y install dub

How To Uninstall dub on Fedora 36

To uninstall only the dub package we can use the following command:

sudo dnf remove dub

dub Package Contents on Fedora 36

/usr/bin/dub
/usr/lib/.build-id
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/48d0f4e17e2129c633cc34948b8b19cfce6b79
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/dub
/usr/share/doc/dub
/usr/share/doc/dub/ARCHITECTURE.md
/usr/share/doc/dub/CONTRIBUTING.md
/usr/share/doc/dub/README.md
/usr/share/doc/dub/architecture.graphmlz
/usr/share/doc/dub/architecture.png
/usr/share/doc/dub/examples
/usr/share/doc/dub/examples/app
/usr/share/doc/dub/examples/app-sdl
/usr/share/doc/dub/examples/app-sdl/dub.sdl
/usr/share/doc/dub/examples/app-sdl/source
/usr/share/doc/dub/examples/app-sdl/source/app.d
/usr/share/doc/dub/examples/app/dub.json
/usr/share/doc/dub/examples/app/source
/usr/share/doc/dub/examples/app/source/app.d
/usr/share/doc/dub/examples/generated-sources
/usr/share/doc/dub/examples/generated-sources/dub.json
/usr/share/doc/dub/examples/generated-sources/source
/usr/share/doc/dub/examples/generated-sources/source/app.d
/usr/share/doc/dub/examples/header-lib
/usr/share/doc/dub/examples/header-lib/dub.json
/usr/share/doc/dub/examples/header-lib/import
/usr/share/doc/dub/examples/header-lib/import/mylib.d
/usr/share/doc/dub/examples/lib
/usr/share/doc/dub/examples/lib-user
/usr/share/doc/dub/examples/lib-user/dub.json
/usr/share/doc/dub/examples/lib-user/source
/usr/share/doc/dub/examples/lib-user/source/app.d
/usr/share/doc/dub/examples/lib/dub.json
/usr/share/doc/dub/examples/lib/source
/usr/share/doc/dub/examples/lib/source/lib.d
/usr/share/doc/dub/examples/mixed
/usr/share/doc/dub/examples/mixed/dub.json
/usr/share/doc/dub/examples/mixed/source
/usr/share/doc/dub/examples/mixed/source/app.d
/usr/share/doc/dub/examples/mixed/source/lib.d
/usr/share/doc/dub/examples/vibed
/usr/share/doc/dub/examples/vibed-main
/usr/share/doc/dub/examples/vibed-main/dub.json
/usr/share/doc/dub/examples/vibed-main/source
/usr/share/doc/dub/examples/vibed-main/source/app.d
/usr/share/doc/dub/examples/vibed/dub.json
/usr/share/doc/dub/examples/vibed/source
/usr/share/doc/dub/examples/vibed/source/app.d
/usr/share/fish
/usr/share/fish/completions
/usr/share/fish/completions/dub.fish
/usr/share/licenses/dub
/usr/share/licenses/dub/LICENSE
/usr/share/man/man1/dub-add-local.1.gz
/usr/share/man/man1/dub-add-override.1.gz
/usr/share/man/man1/dub-add-path.1.gz
/usr/share/man/man1/dub-add.1.gz
/usr/share/man/man1/dub-build.1.gz
/usr/share/man/man1/dub-clean-caches.1.gz
/usr/share/man/man1/dub-clean.1.gz
/usr/share/man/man1/dub-convert.1.gz
/usr/share/man/man1/dub-describe.1.gz
/usr/share/man/man1/dub-dustmite.1.gz
/usr/share/man/man1/dub-fetch.1.gz
/usr/share/man/man1/dub-generate.1.gz
/usr/share/man/man1/dub-init.1.gz
/usr/share/man/man1/dub-install.1.gz
/usr/share/man/man1/dub-lint.1.gz
/usr/share/man/man1/dub-list-overrides.1.gz
/usr/share/man/man1/dub-list.1.gz
/usr/share/man/man1/dub-remove-local.1.gz
/usr/share/man/man1/dub-remove-override.1.gz
/usr/share/man/man1/dub-remove-path.1.gz
/usr/share/man/man1/dub-remove.1.gz
/usr/share/man/man1/dub-run.1.gz
/usr/share/man/man1/dub-search.1.gz
/usr/share/man/man1/dub-test.1.gz
/usr/share/man/man1/dub-uninstall.1.gz
/usr/share/man/man1/dub-upgrade.1.gz
/usr/share/man/man1/dub.1.gz
/usr/share/zsh
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_dub

References

Summary

In this tutorial we learn how to install dub on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).