# How to check if all my packages are available in the binary cache

**URL:** https://discourse.nixos.org/t/how-to-check-if-all-my-packages-are-available-in-the-binary-cache/57039
**Category:** Help
**Created:** [December 5, 2024, 6:37pm UTC](https://discourse.nixos.org/t/how-to-check-if-all-my-packages-are-available-in-the-binary-cache/57039 "2024-12-05T18:37:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jisponitra](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/j/4da419/32.png) [@jisponitra](https://discourse.nixos.org/u/jisponitra)
#### Post date: [December 5, 2024, 6:37pm UTC](https://discourse.nixos.org/t/how-to-check-if-all-my-packages-are-available-in-the-binary-cache/57039/1 "2024-12-05T18:37:48Z")

</div>

Is there a way to check whether any of my packages is not in the binary cache (other than running `nixos-rebuild` and checking if it builds something)? I am currently waiting for the build failures of paperless and libreoffice to be resolved and for hydra to build them but it’s quite annoying to try to `nixos-rebuild` just to check if they are cached. Alternatively, how can I check if a specific package is cached in a way that it can be run as a script?

---

<div class="post-metadata">

### Author: ![waffle8946](https://discourse.nixos.org/user_avatar/discourse.nixos.org/waffle8946/32/27221_2.png) [@waffle8946](https://discourse.nixos.org/u/waffle8946)
#### Post date: [December 5, 2024, 6:54pm UTC](https://discourse.nixos.org/t/how-to-check-if-all-my-packages-are-available-in-the-binary-cache/57039/2 "2024-12-05T18:54:14Z")

</div>

one option:

> [@Initial Release of Nix Weather (v0.0.2) - Guix Weather... for Nix!](https://discourse.nixos.org/t/initial-release-of-nix-weather-v0-0-2-guix-weather-for-nix/51694):
>
> This is the initial released of nix-weather, a cli-tool written in Rust, that checks how many of your NixOS system’s build dependencies are in a binary cache. $ nix-weather -n myhost -c /etc/config/ Found Nix Requisites in 8 seconds Checked 2789 packages in 1 seconds Found 2676/2789 (95.95%) in cache Specifically, this solves a problem we’ve had at DBC Digital where we come back to the office on Mondays, start deploying an update, and find that all of the CUDA related packages we need haven…

Alternatively you can set `max-jobs` to `0` which will cause the build to fail for uncached and unsubstitutable store objects

---

<div class="post-metadata">

### Author: ![jisponitra](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/j/4da419/32.png) [@jisponitra](https://discourse.nixos.org/u/jisponitra)
#### Post date: [December 5, 2024, 10:34pm UTC](https://discourse.nixos.org/t/how-to-check-if-all-my-packages-are-available-in-the-binary-cache/57039/3 "2024-12-05T22:34:41Z")

</div>

Thank you! Looks like nix-weather is exactly what I was looking for.
