dbt Fundamentals
Back to Advanced dbt

Packages — dbt_utils and the Ecosystem

Don't reinvent — install dbt_utils and 80% of common macros are there. FIND_VIDEO: search 'dbt packages dbt_utils tutorial' — recommended channel: dbt Labs. Aim for 9 min or under.

3 minutesVideo LessonPDF notes
🎯 Free Guest Mode: You are learning for free. Sign in to save your completion progress and quiz answers.
Loading progress...

Key moments

  1. Package Concepts and Purpose — Introduces dbt packages as standalone projects that provide reusable models and macros to extend project capabilities.
  2. Creating the packages.yml Manifest — Explains how to manually create the packages.yml configuration file at the root level alongside dbt_project.yml.
  3. Declaring Dependencies from dbt Hub — Demonstrates locating dbt_utils on dbt Hub and pasting the package declaration block into packages.yml.
  4. Installing Packages with dbt deps — Covers running the dbt deps command in the CLI to resolve and download project dependencies.
  5. Verifying Installed Package Modules — Shows how to locate and inspect downloaded package files in the local dbt_modules directory.
PDF notes

Frequently asked questions

Why is packages.yml not generated by dbt init?

External packages are optional project add-ons, so dbt requires you to create packages.yml manually only when external dependencies are needed.

Where can I find new packages to use in my dbt project?

You can browse, search, and copy installation configurations for verified packages on the official dbt Hub website.

What happens under the hood when I run dbt deps?

The CLI parses packages.yml, downloads the specified versions from dbt Hub or Git, and extracts their source files into your local project directory.

How was this lesson?

Your feedback helps us refine explanations and catch bugs.