# Mender client version is dirty

**URL:** https://hub.mender.io/t/mender-client-version-is-dirty/3645
**Category:** General Discussions
**Tags:** mender-client
**Created:** [May 17, 2021, 9:55am UTC](https://hub.mender.io/t/mender-client-version-is-dirty/3645 "2021-05-17T09:55:13Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![anishmonachan](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/anishmonachan/32/802_2.png) [@anishmonachan](https://hub.mender.io/u/anishmonachan)
#### Post date: [May 17, 2021, 9:55am UTC](https://hub.mender.io/t/mender-client-version-is-dirty/3645/1 "2021-05-17T09:55:13Z")

</div>

Hello,  
I’ve been using the mender dunfell. When I check the mender version, I’ve following output with a string extension dirty. Why is that? That means I’m using a wrong mender version?

```
root@test-pc:~# mender -version
2.6.0-dirty	runtime: go1.14.12
```

---

<div class="post-metadata">

### Author: ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)
#### Post date: [May 17, 2021, 10:31am UTC](https://hub.mender.io/t/mender-client-version-is-dirty/3645/2 "2021-05-17T10:31:07Z")

</div>

Have you set a mender client version in your local.conf?

---

<div class="post-metadata">

### Author: ![anishmonachan](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/anishmonachan/32/802_2.png) [@anishmonachan](https://hub.mender.io/u/anishmonachan)
#### Post date: [May 17, 2021, 10:36am UTC](https://hub.mender.io/t/mender-client-version-is-dirty/3645/3 "2021-05-17T10:36:44Z")

</div>

No, I haven’t set. What is the exact variable name to set mender version? I’ll double check that by the way

---

<div class="post-metadata">

### Author: ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)
#### Post date: [May 17, 2021, 11:23am UTC](https://hub.mender.io/t/mender-client-version-is-dirty/3645/4 "2021-05-17T11:23:53Z")

</div>

These are the Yocto variables that I am using:

```
PREFERRED_VERSION_pn-mender = "2.5.0"
PREFERRED_VERSION_pn-mender-artifact = "3.5.0"
PREFERRED_VERSION_pn-mender-artifact-native = "3.5.0"

```

but obviously change versions to suit your requirements

---

<div class="post-metadata">

### Author: ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)
#### Post date: [May 17, 2021, 1:35pm UTC](https://hub.mender.io/t/mender-client-version-is-dirty/3645/5 "2021-05-17T13:35:42Z")

</div>

I think that means that your git sources for Mender are based on the 2.6.0 tag but have been modified. I don’t know how that will happen though. I just launched a Dunfell qemu instance and it is just 2.6.0.

Do you have any local patches?

Drew

---

<div class="post-metadata">

### Author: ![anishmonachan](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/anishmonachan/32/802_2.png) [@anishmonachan](https://hub.mender.io/u/anishmonachan)
#### Post date: [May 17, 2021, 1:43pm UTC](https://hub.mender.io/t/mender-client-version-is-dirty/3645/6 "2021-05-17T13:43:07Z")

</div>

I don’t have any local patches @drewmoseley. I bbappend mender recipe.

@dellgreen The version names I set as following

```
PREFERRED_VERSION_pn-mender = "2.6%"
PREFERRED_VERSION_pn-mender-artifact = "3.4%"
PREFERRED_VERSION_pn-mender-artifact-native = "3.4%"
```

---

<div class="post-metadata">

### Author: ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)
#### Post date: [May 17, 2021, 6:09pm UTC](https://hub.mender.io/t/mender-client-version-is-dirty/3645/7 "2021-05-17T18:09:53Z")

</div>

If it’s still doing it after all that, then check the yocto work dir for the mender client to see what’s getting added/changed in its git repo. The build git repo will be at a path a little like the following depending on your Yocto setup and versions:

> build/tmp/debug/work/cortexa9hf-neon-poky-linux-gnueabi/mender/2.1.2-r0/git/src/github.com/mendersoftware/mender
