# upgrade VTK

**URL:** https://discourse.vtk.org/t/upgrade-vtk/1466
**Category:** Support
**Created:** [August 1, 2019, 12:50pm UTC](https://discourse.vtk.org/t/upgrade-vtk/1466 "2019-08-01T12:50:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Saadana](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/a8b319/32.png) [@Saadana](https://discourse.vtk.org/u/Saadana)
#### Post date: [August 1, 2019, 12:50pm UTC](https://discourse.vtk.org/t/upgrade-vtk/1466/1 "2019-08-01T12:50:04Z")

</div>

Hello,

I want to upgrade from version 8.1.2 to the latest version 8.2.0.

Is it necessary to remove the entire version 8.1.2 to reinstall VTK 8.2.0?

What do I have to do to install it in both release and debug modes?

Thank you in advance for your answer.

best regards

Hamdi

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [August 1, 2019, 2:28pm UTC](https://discourse.vtk.org/t/upgrade-vtk/1466/2 "2019-08-01T14:28:44Z")

</div>

Most probably you need to rebuild your entire project, not just VTK.

---

<div class="post-metadata">

### Author: ![Saadana](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/a8b319/32.png) [@Saadana](https://discourse.vtk.org/u/Saadana)
#### Post date: [August 2, 2019, 8:21am UTC](https://discourse.vtk.org/t/upgrade-vtk/1466/3 "2019-08-02T08:21:16Z")

</div>

Okay,  
So I have to delete the old version of vtk?  
Regards

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [August 2, 2019, 12:47pm UTC](https://discourse.vtk.org/t/upgrade-vtk/1466/4 "2019-08-02T12:47:22Z")

</div>

Yes, I would recommend to remove the entire build tree and rebuild the whole project if build fails after a major update of a library.

---

<div class="post-metadata">

### Author: ![francek](https://discourse.vtk.org/user_avatar/discourse.vtk.org/francek/32/10505_2.png) [@francek](https://discourse.vtk.org/u/francek)
#### Post date: [August 2, 2019, 5:07pm UTC](https://discourse.vtk.org/t/upgrade-vtk/1466/5 "2019-08-02T17:07:02Z")

</div>

Hi,  
You can choose where your libs will be installed by editing ‘CMAKE\_INSTALL\_PREFIX’ variable during the build configuration in cmake GUI:  
 ![image](https://discourse.vtk.org/uploads/default/original/1X/6d19249547bdca161520ff3ee8aa6fce31488d52.png)
