How to check tikz version using \listfiles Command

I tried to the following code to get the version information about TikZ using \listfiles command. However, there is an error says File amsmath.sty not Found, may someone help me?

\documentclass{article}
\usepackage{mathtools}
\usepackage{dateiliste}
\listfiles
\begin{document}
\printFileList
\end{document}

-
The mathtools package loads amsmath by default. Do you use MikTeX? A MiKTeX update removed amsmath as obsolete – can I use another package or get it back? –  Qrrbrbirlbel Feb 12 '13 at 19:27
I fail to see the relevance to TikZ in this question? (especially the tag tikz-trees?). If you want information about the tikzversion, use \pgfversion. Even though the package dateiliste refers TikZ your question is about TikZ, not dateiliste. –  zeroth Feb 12 '13 at 19:32
@Qrrbrbirlbel yes –  sweetyBaby Feb 12 '13 at 19:33
@sweetyBaby Besides the amsmath part, you actually need to load TikZ in order to check its version (regardless of the method). –  Qrrbrbirlbel Feb 12 '13 at 20:02

Qrrbrbbirlbel (phew) answered the amsmath update problem. You can read more from Heiko Oberdiek's answer in A MiKTeX update removed amsmath as obsolete – can I use another package or get it back?

You can also check your PGF/TikZ version via two options

1. Putting \listfiles command in your preamble and reading your log file
2. Or putting \pgfversion command somewhere in the document to be printed.

Here is two examples combined

\documentclass{article}
\usepackage{tikz}

\listfiles

\begin{document}
\pgfversion
\end{document}


It gives

in the resulting PDF file and also in the log file

-