[
    {
        "role": "user",
        "content": "in%20debian%2013%2C%20how%20do%20i%20list%20the%20files%20contained%20within%20an%20installed%20package%3F"
    },
    {
        "role": "assistant",
        "content": "In Debian 13 (codename *Trixie*), you can list all the files installed by a given package using the `dpkg` tools. Below are several commands and techniques that will help you, depending on whether the package is already installed or not.\n\n---\n\n## If the package is already installed\n\nThe easiest way is:\n\n```\ndpkg -L <package-name>\n```\n\nor equivalently:\n\n```\ndpkg --listfiles <package-name>\n```\n\nThis shows all files that were installed by `<package-name>` on your system. ([debian.org](https://www.debian.org/doc/manuals/debian-faq/pkgtools?utm_source=openai))\n\n---\n\n## If the package is *not* installed (or you don\u2019t have it yet)\n\nYou can still inspect its contents with these tools:\n\n- **`apt-file`**  \n  First install and update its database:\n\n  ```\n  sudo apt install apt-file\n  sudo apt-file update\n  ```\n\n  Then list the package\u2019s contents:\n\n  ```\n  apt-file list <package-name>\n  ```\n\n  This doesn\u2019t require the package to be installed locally\u2014`apt-file` uses the repository metadata. ([wiki.debian.org](https://wiki.debian.org/apt-file/?utm_source=openai))\n\n- **Using a downloaded `.deb` file**  \n  If you\u2019ve downloaded the `.deb` but not yet installed it:\n\n  ```\n  dpkg-deb -c <package-file>.deb\n  ```\n\n  This lists everything inside the archived package. ([wiki.debian.org](https://wiki.debian.org/PackagingFAQ?utm_source=openai))\n\n---\n\n## Other useful commands\n\n- **Find which package owns a particular file**  \n  ```\n  dpkg -S /path/to/file\n  ```\n  This command tells you which installed package included that file. ([wiki.debian.org](https://wiki.debian.org/apt-file/?utm_source=openai))\n\n- **Inspect metadata or scripts**  \n  You can look at control data and post-install or pre-remove scripts inside a `.deb` using:\n  ```\n  dpkg-deb -I <package-file>.deb\n  ```\n  or unpack it for full inspection:\n  ```\n  dpkg-deb -x <package-file>.deb /tmp/some-dir\n  ```\n  ([wiki.debian.org](https://wiki.debian.org/PackagingFAQ?utm_source=openai))\n\n---\n\nIf you tell me the specific package name you're interested in, I can show you exactly what files it installs on Debian 13."
    }
]