# The `stack list` command [:octicons-tag-24: 2.7.1](https://github.com/commercialhaskell/stack/releases/tag/v2.7.1) ~~~text stack list [PACKAGE] ~~~ `stack list ` will send to the standard output stream the latest version of the package from Hackage. If the package name cannot be found on Hackage, even after updating the package index, suggestions (not necessarily good ones) will be made about the intended package name. `stack --snapshot list ` will send to the standard output stream the version of the package included in the specified snapshot (either directly or indirectly, if a boot package of the compiler specified by the snapshot). If the package name cannot be found in the snapshot, the command will fail, identifying only the package(s) that did not appear in the snapshot. More than one package name can be specified. `stack --snapshot list` will send to the standard output stream a list of all the packages included directly in the specified snapshot (that is, excluding those included only indirectly as a boot package of the compiler specified by the snapshot). For example: ~~~text stack list base unix Win32 acme-missiles pantry base-4.20.0.1 unix-2.8.5.1 Win32-2.14.0.0 acme-missiles-0.3 pantry-0.10.0 stack list paltry Could not find package paltry, updating ... Package index cache populated Error: [S-4926] * Could not find package paltry on Hackage. Perhaps you meant one of: pantry, pretty, pasty, xattr, alloy, para, pappy, alure, polar and factory. stack --snapshot lts-22.28 list base unix Win32 acme-missiles pantry Error: [S-4926] * Package does not appear in snapshot (directly or indirectly): acme-missiles. stack --snapshot lts-22.28 list base unix Win32 pantry base-4.18.2.1 unix-2.8.4.0 Win32-2.13.3.0 pantry-0.9.3.2 stack --snapshot lts-22.28 list AC-Angle-1.0 ALUT-2.4.0.3 ... zstd-0.1.3.0 zxcvbn-hs-0.3.6 ~~~