# How do install version 2 locally?

**URL:** <https://forum.ghost.org/t/how-do-install-version-2-locally/14545>\
**Category:** Installation\
**Created:** [May 20, 2020, 6:08pm UTC](https://forum.ghost.org/t/how-do-install-version-2-locally/14545 "2020-05-20T18:08:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![josephtaylor](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/josephtaylor/32/8038_2.png) [@josephtaylor](https://forum.ghost.org/u/josephtaylor)\
**Post date:** [May 20, 2020, 6:08pm UTC](https://forum.ghost.org/t/how-do-install-version-2-locally/14545/1 "2020-05-20T18:08:55Z")

</div>

If i install ghost-cli and run `ghost install local` it installs ghost version 3.

If I try to run `ghost upgrade 2.38.1` it says:

```auto
Message: The custom version specified: 2.38.1, is less than the current active version: 3.16.1

```

I have a database file from an old version 2 instance. I’m trying to somehow run version 2 locally so I can open this database file up and export the content.

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [May 20, 2020, 6:11pm UTC](https://forum.ghost.org/t/how-do-install-version-2-locally/14545/2 "2020-05-20T18:11:20Z")

</div>

Hey @josephtaylor 👋

You’ll need to create a new installation of Ghost since upgrading is only used to update your ghost version. You can install 2.38.1 by running `ghost install 2.38.1 --local`

---

<div class="post-metadata">

**Author:** ![josephtaylor](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/josephtaylor/32/8038_2.png) [@josephtaylor](https://forum.ghost.org/u/josephtaylor)\
**Post date:** [May 20, 2020, 6:14pm UTC](https://forum.ghost.org/t/how-do-install-version-2-locally/14545/3 "2020-05-20T18:14:13Z")

</div>

thanks so much! totally missed that `--local` flag.
