Xmllint command not found

Hi

I want to use the “xmllint” command to validate some XML file

So I have in my circleci.xml file:

  • sudo apt-get install --yes libxml2
  • xmllint

the first command says:
“libxml2 is already the newest version” which is perfect

the “xmllint” command returns “bash: line 1: xmllint: command not found”

what should I do here?

if I do a:
“sudo find / -name xmllint"
it returns back:
”/usr/share/bash-completion/completions/xmllint"

shouldn’t the command “xmllint” just work?

Hi gemal - I’m having the exact same problem. Did you manage to find a solution?

Found the issue, the package needed for xmllint is actually libxml2-utils

The following should work for anyone else that runs into this problem:

dependencies:
  pre:
    - sudo apt-get install libxml2-utils