# Version Check

**URL:** <https://hub.mender.io/t/version-check/4032>\
**Category:** General Discussions\
**Tags:** yocto, nxp, warrior\
**Created:** [August 26, 2021, 4:05am UTC](https://hub.mender.io/t/version-check/4032 "2021-08-26T04:05:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![itzSatz](https://avatars.discourse-cdn.com/v4/letter/i/65b543/32.png) [@itzSatz](https://hub.mender.io/u/itzSatz)\
**Post date:** [August 26, 2021, 4:05am UTC](https://hub.mender.io/t/version-check/4032/1 "2021-08-26T04:05:56Z")

</div>

[9:53 AM] Ronit Wilson Rolance (MS/ENC3-BEG)

Hi,  
We’re running a service that would need to prevent older versions for security reasons.  
I used state scripts to implement version check. I added the state script ‘ArtifactInstall\_Enter\_00’, where the old version I will get from /etc/mender/artifact\_info, and the new incoming version I will get from mender deployment logs.  
However, I am facing a problem, if I try to install older mender artifact that don’t have this state scripts with version check . It does not work as expected.  
Any solutions handling version check

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [August 26, 2021, 5:38am UTC](https://hub.mender.io/t/version-check/4032/2 "2021-08-26T05:38:45Z")

</div>

You could check out this [version check rootfs Update Module](https://hub.mender.io/t/rootfs-with-explicit-version-check/1682). It sounds like it does what you need.

---

<div class="post-metadata">

**Author:** ![itzSatz](https://avatars.discourse-cdn.com/v4/letter/i/65b543/32.png) [@itzSatz](https://hub.mender.io/u/itzSatz)\
**Post date:** [August 26, 2021, 6:01am UTC](https://hub.mender.io/t/version-check/4032/3 "2021-08-26T06:01:21Z")

</div>

Thank you for the information, will have a look. Is module update for rootfs works as good as a normal update (in terms of rollbacks, stability).

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [August 26, 2021, 6:21am UTC](https://hub.mender.io/t/version-check/4032/4 "2021-08-26T06:21:08Z")

</div>

They are community maintained, so we cannot guarantee the same stability. But it’s based on the same principles as the original (Golang based) update code, and I believe the inspiration for this Update Module came from the `rootfs-image-v2` Update Module, which is being regularly tested.
