Package Analysis in Docker Image

Yes clair does the job, but it does in an automated fashion. I want to understand how clair does it. I want to analyse the image layers manually in order to understand and get the package version accordingly. Any way to achieve the same?