{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "anchore-syft--list-the-packages-inside-a-container-image-with-syft",
 "repo": "anchore/syft",
 "repo_url": "https://github.com/anchore/syft",
 "repo_slug": "anchore-syft",
 "title": "List every package inside a container image",
 "page_title": "How to list every package inside a container image with Syft",
 "summary": "Point Syft at an image and see all the packages it contains in one command.",
 "who": "A platform engineer who wants to know what actually ships inside an image before deploying it.",
 "problem": "Images pull in OS and language packages that nobody wrote down.",
 "outcome": "A readable list of the packages found in the image.",
 "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-project` on a directory to inventory a project the same way"
 ],
 "agent_prompt": "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.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Beginner",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "Syft inventories packages; for vulnerabilities the README points to a scanner like Grype.",
 "category": "Security and science",
 "tags": [
  "Security and science"
 ],
 "lang": "go",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "system",
   "notice": "The install command runs a downloaded script with sudo; read it first or use another method from the Syft installation docs."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/anchore-syft/list-the-packages-inside-a-container-image-with-syft/",
 "md": "https://dedupedai.com/use-cases/anchore-syft/list-the-packages-inside-a-container-image-with-syft/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/anchore-syft--list-the-packages-inside-a-container-image-with-syft.json",
 "api_version": "v1"
}
