# Uninstalling Racket From Shell Script and Installing Racket from Apt

**URL:** <https://racket.discourse.group/t/uninstalling-racket-from-shell-script-and-installing-racket-from-apt/1943>\
**Category:** General\
**Created:** [May 12, 2023, 8:56pm UTC](https://racket.discourse.group/t/uninstalling-racket-from-shell-script-and-installing-racket-from-apt/1943 "2023-05-12T20:56:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![evdubs](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@evdubs](https://racket.discourse.group/u/evdubs)\
**Post date:** [May 12, 2023, 8:56pm UTC](https://racket.discourse.group/t/uninstalling-racket-from-shell-script-and-installing-racket-from-apt/1943/1 "2023-05-12T20:56:18Z")

</div>

A while ago, I installed Racket from the website ([https://download.racket-lang.org/](https://download.racket-lang.org/)). I did the non-Unix distribution, so it did not come with the `racket-uninstall` script. I later decided to install Racket from `apt` so that I could receive updates without having to download them manually. This led to a conflict where both `racket` installations were active.

Racket from the shell script is installed to `/usr/racket` but there are also symlinks installed, so you need to do a bit more work to remove the installation. The following command can be used to find these extra symlink files to complete the removal:

```bash
$ find / -type l -exec readlink -nf {} ';' -exec echo " -> {}" ';' 2>/dev/null | grep /usr/racket

```

This uses `find` to find symlinks (`-type l`) and `readlink` to show their installed location. I assume this is all that is needed to clean things up.
