10

I am using cygwin on a window 8 machine. When I type

$ xmllint --format something.xml

It says: -bash: xmllint: command not found

How can I use xmllint with cygwin? Is there any other alternatives?

Zombo
  • 1
  • 62
  • 391
  • 407
kaboom
  • 833
  • 4
  • 18
  • 38

2 Answers2

28

Search package

cygcheck -p xmllint.exe$

Result

Found 1 matches for xmllint.exe$
x86_64/libxml2/libxml2-2.9.1-1

Then install

setup-x86_64 -qP libxml2
Zombo
  • 1
  • 62
  • 391
  • 407
3

You're better of just installing all of CygWin, not just the default packages. Then you don't have to worry about possibly missing programs.

Disk space is cheap, having to waste time figuring out what package contains what programs is not :-)

If you must pick and choose, you can search for the executable here. Based on a cursory search, it's available in Libs/libxml2.

paxdiablo
  • 854,327
  • 234
  • 1,573
  • 1,953
  • 3
    I found cygwin to be much more enjoyable when I **stopped** installing every package. The initial install took so long that I avoided installing cygwin all together. Now, finding and installing cygwin packages doesn't take too long -- unless the package doesn't exist at all. – Josiah Yoder Feb 20 '16 at 15:03
  • @Josiah, I don't have to install Cygwin so often that it's a problem :-) In any case, I've ditched Cygwin for now as I'm using the new Linux subsystem in Win10. – paxdiablo Jul 18 '17 at 01:18