# How to install old versions of GMT using brew (macOS)

**URL:** <https://forum.generic-mapping-tools.org/t/how-to-install-old-versions-of-gmt-using-brew-macos/624>\
**Category:** Q&A\
**Created:** [July 6, 2020, 8:43am UTC](https://forum.generic-mapping-tools.org/t/how-to-install-old-versions-of-gmt-using-brew-macos/624 "2020-07-06T08:43:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarkWieczorek](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/markwieczorek/32/392_2.png) [@MarkWieczorek](https://forum.generic-mapping-tools.org/u/MarkWieczorek)\
**Post date:** [July 6, 2020, 8:43am UTC](https://forum.generic-mapping-tools.org/t/how-to-install-old-versions-of-gmt-using-brew-macos/624/1 "2020-07-06T08:43:19Z")

</div>

I just installed GMT 6.1.0 using brew and everything works fine! However, I need to help debug a problem and I was asked to try 6.0.0. The problem is that I can not figure out how to reinstall 6.0.0 using brew.

I used to use something like this

`brew install gmt@6.0.0`

but that doesn’t work. I also looked in the /usr/local/Cellar/gmt, but only version 6.1.0 is there and the 6.0.0. version was somehow deleted (why???).

It is possible that I am doing something really stupid, but it just appears as if the 6.0.0 version no longer exists on my computer, and that the formula for building 6.0.0 no longer exists either.

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [July 6, 2020, 11:52am UTC](https://forum.generic-mapping-tools.org/t/how-to-install-old-versions-of-gmt-using-brew-macos/624/2 "2020-07-06T11:52:24Z")

</div>

I guess you need to find the 6.0.0 formula. Brew formulas are in github so it should be possible to to get previous versions with git commands. I’m looking at [formula](https://github.com/Homebrew/homebrew-core/blob/master/Formula/gmt.rb) but it gives an error when trying to generate the history.

---

<div class="post-metadata">

**Author:** ![chhei](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/chhei/32/32_2.png) [@chhei](https://forum.generic-mapping-tools.org/u/chhei)\
**Post date:** [September 23, 2020, 1:41pm UTC](https://forum.generic-mapping-tools.org/t/how-to-install-old-versions-of-gmt-using-brew-macos/624/3 "2020-09-23T13:41:53Z")

</div>

Hi Mark,

I just saw your post here - you’ve most likely solved this issue by now but I went through a similar exercise recently in order to use Ghostscript v9.5 with recent the GMT. I’ve generated a formula for GS9.5 which you can find [here](https://github.com/chhei/homebrew-ghostscript). If you follow the same syntax as in the repository, it should be straightforward to get homebrew to install an older version of GMT.

Cheers,  
Christian
