# Gmt4 and gmt6 side by side on centOS

**URL:** <https://forum.generic-mapping-tools.org/t/gmt4-and-gmt6-side-by-side-on-centos/661>\
**Category:** Q&A\
**Created:** [July 13, 2020, 3:38pm UTC](https://forum.generic-mapping-tools.org/t/gmt4-and-gmt6-side-by-side-on-centos/661 "2020-07-13T15:38:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpesicek](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/jpesicek/32/618_2.png) [@jpesicek](https://forum.generic-mapping-tools.org/u/jpesicek)\
**Post date:** [July 13, 2020, 3:38pm UTC](https://forum.generic-mapping-tools.org/t/gmt4-and-gmt6-side-by-side-on-centos/661/1 "2020-07-13T15:38:29Z")

</div>

I need to have the option to use both gmt4 and gmt6. Currently I have gmt6 installed via yum. What is the recommended way to install gmt4 and switch between the two? thanks

---

<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 13, 2020, 4:42pm UTC](https://forum.generic-mapping-tools.org/t/gmt4-and-gmt6-side-by-side-on-centos/661/2 "2020-07-13T16:42:17Z")

</div>

See the [CookBook](https://docs.generic-mapping-tools.org/latest/switching.html) but, curiosity, what is it that you need to do with GMT4 that you can’t do with 6?

---

<div class="post-metadata">

**Author:** ![jpesicek](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/jpesicek/32/618_2.png) [@jpesicek](https://forum.generic-mapping-tools.org/u/jpesicek)\
**Post date:** [July 13, 2020, 6:30pm UTC](https://forum.generic-mapping-tools.org/t/gmt4-and-gmt6-side-by-side-on-centos/661/3 "2020-07-13T18:30:31Z")

</div>

the gmtswitch link you sent begins “after you have finished installing all GMT versions of interest” but my first question is: How do you recommend installing gmt4 alongside 6?

my goal is to validate some old gmt4 scripts with the least possible effort. maybe there is an easier way?  
thanks again

---

<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 14, 2020, 11:37am UTC](https://forum.generic-mapping-tools.org/t/gmt4-and-gmt6-side-by-side-on-centos/661/4 "2020-07-14T11:37:50Z")

</div>

Well, I guess you are building GMT4 yourself so just put it into its own dir tree.
