system. The install command runs a downloaded script with sudo; read it first or use another method from the Syft installation docs.
Who it is forA platform engineer who wants to know what actually ships inside an image before deploying it.
The problemImages pull in OS and language packages that nobody wrote down.
The outcomeA readable list of the packages found in the image.
What you need first
- A Linux or macOS shell with curl and sudo, or another install method from the Syft docs
- A container image reference or a project directory to scan
- Grype is optional, only for the vulnerability scanning step
Steps
- Install Syft with
curl -sSfL https://get.anchore.io/syft | sudo sh -s -- -b /usr/local/bin - Run
syft alpine:latest, replacing alpine:latest with your own image reference - Read the package list that Syft prints
- Run
syft ./my-projecton a directory to inventory a project the same way
Prompt for your agent
Using anchore/syft, install it with `curl -sSfL https://get.anchore.io/syft | sudo sh -s -- -b /usr/local/bin`, run `syft alpine:latest` against <my image>, and summarise the packages by ecosystem.
Caveat. Syft inventories packages; for vulnerabilities the README points to a scanner like Grype.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for anchore/syft and "List every package inside a container image"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer