Inspecting Packages

You can inspect the uploaded packages and also the packages in the local cache by running the conan get command.

  • List the files of a local recipe folder:

    $ conan get zlib/1.2.8@conan/stable .
    
    Listing directory '.':
     CMakeLists.txt
     conanfile.py
     conanmanifest.txt
    
  • Print the conaninfo.txt file of a binary package:

    $ conan get zlib/1.2.11@conan/stable -p 2144f833c251030c3cfd61c4354ae0e38607a909
    
  • Print the conanfile.py from a remote package:

    $ conan get zlib/1.2.8@conan/stable -r conan-center
    
    from conans import ConanFile, tools, CMake, AutoToolsBuildEnvironment
    from conans.util import files
    from conans import __version__ as conan_version
    import os
    
    
    class ZlibConan(ConanFile):
        name = "zlib"
        version = "1.2.8"
        ZIP_FOLDER_NAME = "zlib-%s" % version
    
        #...
    

Check the conan get command command reference and more examples.