> First post and I'm completely new to YUM, but as I'm learning I'm also > documenting my every step as I migrate from RHN to YUM. > > Anyhow.. for the sake of documentation I am trying to 'illustrate' how YUM > 'works.. > > And, as I'm reading the 'How it Works' info on the website I'm curious > about the following line > > <snip> > Every rpm has a header. That header contains a complete file list, > package descriptions, lists of what features/libs it provides, lists of > what it requires, what it conflicts with etc. In order for rpm to make a > decision about what an rpm will need to be installed it needs the > information in the header. > </snip> > > My question is.. how can I view this 'header'? How can I see exactly what > YUM see's when it determines what dependencies and such? I imagine this > is a simple RPM command? > You know all the stuff you see when you do an rpm -qi [somepackage] or rpm -ql [somepackage] that comes from the header. there is lots of information in there. If you want to read the header yourself you can import it in python and run something like: for key in hdr.keys(): print hdr[key] -sv