How to check the Nexus Repository Manager version from Linux command line?

How to check the Nexus Repository Manager version from Linux command line?
Thanks
-Pete

Hi Pete,
Currently the easiest way to get the version of Nexus 3 from the command line is to use curl and parse the ‘Server’ response header.

$ curl --include --silent http://localhost:8081/ | grep Server

Server : Nexus/3.12.0-01 (PRO)
3 Likes

Hey Pete,

What’s the use case for this?

As you can gather from @mworthington answer, we don’t have a super easy way to accomplish this, but I’m interested to hear what you’re looking to do.

Hi,

Thanks for the answer - I’ll try that…

I’m responsible of Our CI/CD delivery environments and there is quite a lot of different software running… I have created a healtcheck Jenkins/RobotFrameWork job which collects diffrent kind of information from all CI servers to one page - there I need this. I collect this information from all used SWs…

Thanks
-Pete