1762 shaares
  
  
17 private links
17 private links
The quickest way to check if a package is installed is to search for it with kpsewhich {package-name}.sty.  So, to check for etoolbox, use
$ kpsewhich etoolbox.sty
/usr/local/texlive/2014/texmf-dist/tex/latex/etoolbox/etoolbox.styIf it finds the package, it will output the path (just like normal which).  If it doesn't find the package, it will output nothing and have a non-zero exit code.
Perhaps the most direct way to answer the question though would be to try and use the package:
\documentclass{article}
\usepackage{etoolbox}
\begin{document}
\end{document}The above will fail if etoolbox cannot be found.
 
                   
    