# Check which packages are actually used in script?

**URL:** https://discourse.julialang.org/t/check-which-packages-are-actually-used-in-script/128279
**Category:** General Usage
**Created:** [April 22, 2025, 12:15am UTC](https://discourse.julialang.org/t/check-which-packages-are-actually-used-in-script/128279 "2025-04-22T00:15:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Satvik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/satvik/32/20486_2.png) [@Satvik](https://discourse.julialang.org/u/Satvik)
#### Post date: [April 22, 2025, 12:15am UTC](https://discourse.julialang.org/t/check-which-packages-are-actually-used-in-script/128279/1 "2025-04-22T00:15:20Z")

</div>

We have a fairly bloated `Project.toml` that I’m trying to trim down. Is there any way to, e.g., run tests and track which packages were in Project.toml or imported with `using` but never actually called?

---

<div class="post-metadata">

### Author: ![nhz2](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nhz2/32/44428_2.png) [@nhz2](https://discourse.julialang.org/u/nhz2)
#### Post date: [April 22, 2025, 12:36am UTC](https://discourse.julialang.org/t/check-which-packages-are-actually-used-in-script/128279/2 "2025-04-22T00:36:33Z")

</div>

`print_explicit_imports` from ExplicitImports.jl can report stale imports.

> **[GitHub - ericphanson/ExplicitImports.jl: Developer tooling for Julia namespace management:...](https://github.com/ericphanson/ExplicitImports.jl)**
>
> Developer tooling for Julia namespace management: detecting implicit imports, improper explicit imports, and improper qualified accesses
