2

I want to install xmllint, but don't know how. I'm running Ubuntu LTS 20.04.

2
  • 2
    If the goal is to LINT some XML, there is the libxml2-utils package, but it’s not often people install this on it’s own. What is the actual issue you are attempting to solve? 🤔
    – matigo
    Dec 16, 2021 at 9:00
  • @matigo it was needed to run a script that i needed to run.
    – Sam H
    Dec 16, 2021 at 10:10

1 Answer 1

6

The tool xmllint is part of the libxml2-utils package

As superuser run:-

#apt -y install libxml2-utils

and the xmllint tool will become available e.g.

xmllint --format your.xml

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.