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

**URL:** <https://community.sonatype.com/t/how-to-check-the-nexus-repository-manager-version-from-linux-command-line/127>\
**Category:** Sonatype Nexus Repository\
**Created:** [June 11, 2018, 11:31am UTC](https://community.sonatype.com/t/how-to-check-the-nexus-repository-manager-version-from-linux-command-line/127 "2018-06-11T11:31:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pete.panula](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@pete.panula](https://community.sonatype.com/u/pete.panula)\
**Post date:** [June 11, 2018, 11:31am UTC](https://community.sonatype.com/t/how-to-check-the-nexus-repository-manager-version-from-linux-command-line/127/1 "2018-06-11T11:31:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mworthington](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/mworthington/32/64_2.png) [@mworthington](https://community.sonatype.com/u/mworthington)\
**Post date:** [June 11, 2018, 2:18pm UTC](https://community.sonatype.com/t/how-to-check-the-nexus-repository-manager-version-from-linux-command-line/127/2 "2018-06-11T14:18:07Z")

</div>

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.

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

Server : Nexus/3.12.0-01 (PRO)

```

---

<div class="post-metadata">

**Author:** ![nickcook](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/nickcook/32/399_2.png) [@nickcook](https://community.sonatype.com/u/nickcook)\
**Post date:** [June 11, 2018, 3:15pm UTC](https://community.sonatype.com/t/how-to-check-the-nexus-repository-manager-version-from-linux-command-line/127/3 "2018-06-11T15:15:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pete.panula](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@pete.panula](https://community.sonatype.com/u/pete.panula)\
**Post date:** [June 11, 2018, 3:31pm UTC](https://community.sonatype.com/t/how-to-check-the-nexus-repository-manager-version-from-linux-command-line/127/4 "2018-06-11T15:31:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bamartin125](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/bamartin125/32/2561_2.png) [@bamartin125](https://community.sonatype.com/u/bamartin125)\
**Post date:** [January 20, 2023, 5:20pm UTC](https://community.sonatype.com/t/how-to-check-the-nexus-repository-manager-version-from-linux-command-line/127/5 "2023-01-20T17:20:40Z")

</div>

I also would like a way to retrieve the version number programmatically. This could be used to help tell if a REST API feature would be supported by the server (based on the Nexus OSS version).

I currently cannot use the suggestion from @mworthington because my `nginx` reverse proxy seems to be replacing the Response Header `server` field with `nginx/1.2.0`. Maybe there is a way to overcome this issue with a configuration change on the nginx side, but I think it would still be good if the REST API allowed for a place to GET Nexus server information such as the version.

---

<div class="post-metadata">

**Author:** ![ismael.angelo](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/ismael.angelo/32/2882_2.png) [@ismael.angelo](https://community.sonatype.com/u/ismael.angelo)\
**Post date:** [November 20, 2023, 11:03am UTC](https://community.sonatype.com/t/how-to-check-the-nexus-repository-manager-version-from-linux-command-line/127/6 "2023-11-20T11:03:35Z")

</div>

Hello,

While this is an old thread, I’m also looking for answers and found one: this is through swagger.

```auto
curl -s http://localhost:8081/nexus3/service/rest/swagger.json|jq -r '.info.version'

```

Hope this helps.
