\documentclass{ltxdoc} \nofiles \usepackage{listings-ext} \GetFileInfo{listings-ext.sty} \typeout{VERSION \fileversion\space of \filedate} \begin{document} \end{document}