# Updating Racket

**URL:** <https://racket.discourse.group/t/updating-racket/2508>\
**Category:** Questions & Answers\
**Tags:** question, drracket\
**Created:** [November 16, 2023, 4:11pm UTC](https://racket.discourse.group/t/updating-racket/2508 "2023-11-16T16:11:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![taeknibunadur](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@taeknibunadur](https://racket.discourse.group/u/taeknibunadur)\
**Post date:** [November 16, 2023, 4:11pm UTC](https://racket.discourse.group/t/updating-racket/2508/1 "2023-11-16T16:11:27Z")

</div>

I installed Racket on Linux using the bash script provided on the website. I'd like to update it to the latest version but am not sure how. Can anyone advise me please?

---

<div class="post-metadata">

**Author:** ![JohnSnow](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@JohnSnow](https://racket.discourse.group/u/JohnSnow)\
**Post date:** [November 17, 2023, 1:14am UTC](https://racket.discourse.group/t/updating-racket/2508/2 "2023-11-17T01:14:22Z")

</div>

I don't use that bizarre script anymore, but it contains an uninstall script that to remove everything installed.

I guess you can uninstall it first, then install new one it.

> [@Upgrade instructions](https://racket.discourse.group/t/upgrade-instructions/1655/2):
>
> When you use the .sh installer, there is this message: Do you want a Unix-style distribution? In this distribution mode files go into different directories according to Unix conventions. A "racket-uninstall" script will be generated to be used when you want to remove the installation. If you say 'no', the whole Racket directory is kept in a single installation directory (movable and erasable), possibly with external links into it -- this is often more convenient, especially if you…

I think we should add the uninstall instruction to this page's unix installation methods [https://download.racket-lang.org/](https://download.racket-lang.org/)

---

<div class="post-metadata">

**Author:** ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)\
**Post date:** [November 17, 2023, 1:46am UTC](https://racket.discourse.group/t/updating-racket/2508/3 "2023-11-17T01:46:05Z")

</div>

If you installed Racket in the default configuration (that is, _not_ a Unix-style distribution), then uninstalling is as easy as just deleting the directory that contains the installed racket tree, and then installing using the new installer.

If, on the other hand, you installed using a UNIX-style install, you'll need to delete the pieces that are installed in various locations. You can do this using the uninstall script that is generated when you use a unix-style install, which should live in the same place as the racket binary.

If you're not sure which one you used, you should be able to locate your racket binary. If it lives in a directory such as `/usr/racket/bin` where the `bin` directory is inside of a `racket` directory, you probably have a standard install, and you can just get rid of the whole racket directory and install the new one. If it lives in a directory such as `/usr/bin` or `/usr/local/bin` where the parent of the `bin` directory is _not_ racket-specific, you probably used a unix-style install, and you should uninstall using the `racket-uninstall` script that was created when you installed.

---

<div class="post-metadata">

**Author:** ![taeknibunadur](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@taeknibunadur](https://racket.discourse.group/u/taeknibunadur)\
**Post date:** [November 17, 2023, 9:07am UTC](https://racket.discourse.group/t/updating-racket/2508/4 "2023-11-17T09:07:51Z")

</div>

Many thanks for that. I did a UNIX-style install and now that you mention it, I think there was a message during install about uninstalling it. I'll search for the script and do that.
