# How to remove julia from homebrew casks?

**URL:** <https://discourse.julialang.org/t/how-to-remove-julia-from-homebrew-casks/80357>\
**Category:** General Usage\
**Tags:** question\
**Created:** [May 2, 2022, 8:04am UTC](https://discourse.julialang.org/t/how-to-remove-julia-from-homebrew-casks/80357 "2022-05-02T08:04:05Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![roi.holtzman](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Post date:** [May 2, 2022, 8:04am UTC](https://discourse.julialang.org/t/how-to-remove-julia-from-homebrew-casks/80357/1 "2022-05-02T08:04:05Z")

</div>

I have an old version of julia that was probably installed via homebrew (I am running on MacOS).  
When I ran `brew upgarde` I got this:

```julia
==> Casks with 'auto_updates true' or 'version :latest' will not be upgraded; pass `--greedy` to upgrade them.
==> Upgrading 1 outdated package:
julia 0.6.4 -> 1.7.2
==> Upgrading julia
==> Downloading https://julialang-s3.julialang.org/bin/mac/x64/1.7/julia-1.7.2-mac64.dmg
######################################################################## 100.0%
==> Backing App 'Julia-0.6.app' up to '/usr/local/Caskroom/julia/0.6.4/Julia-0.6.app'
==> Removing App '/Applications/Julia-0.6.app'
==> Unlinking Binary '/usr/local/bin/julia'
==> Purging files for version 1.7.2 of Cask julia
==> Purging files for version 1.7.2 of Cask julia
Warning: Reverting upgrade for Cask julia
==> Moving App 'Julia-0.6.app' to '/Applications/Julia-0.6.app'
==> Linking Binary 'julia' to '/usr/local/bin/julia'
Error: julia: It seems there is already an App at '/Applications/Julia-1.7.app'.

```

I would like to remove julia from brew casks so it will NOT upgrade it when I run `brew upgrade`. How can I do that?

---

<div class="post-metadata">

**Author:** ![skleinbo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skleinbo/32/36080_2.png) [@skleinbo](https://discourse.julialang.org/u/skleinbo)\
**Post date:** [May 2, 2022, 8:16am UTC](https://discourse.julialang.org/t/how-to-remove-julia-from-homebrew-casks/80357/2 "2022-05-02T08:16:35Z")

</div>

I would think that removing the version you installed by hand and then upgrading Homebrew will work.

Don’t know why you would want to “remove julia from brew casks”.

---

<div class="post-metadata">

**Author:** ![roi.holtzman](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Post date:** [May 2, 2022, 8:20am UTC](https://discourse.julialang.org/t/how-to-remove-julia-from-homebrew-casks/80357/3 "2022-05-02T08:20:48Z")

</div>

so you mean simply delete the application file `Julia-0.6` from my Applications folder?

---

<div class="post-metadata">

**Author:** ![skleinbo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skleinbo/32/36080_2.png) [@skleinbo](https://discourse.julialang.org/u/skleinbo)\
**Post date:** [May 2, 2022, 8:28am UTC](https://discourse.julialang.org/t/how-to-remove-julia-from-homebrew-casks/80357/4 "2022-05-02T08:28:30Z")

</div>

No, it appears to me that you already have an installation of `Julia-1.7.2` in `/Applications`.  
`brew` tries to upgrade from 0.6 to 1.7.2 and fails because of that, i.e.

```julia
Error: julia: It seems there is already an App at '/Applications/Julia-1.7.app'.

```

What I’m saying is, delete `/Applications/Julia-1.7.2` and try `brew upgrade julia` again.  
Version 0.6 will be archived by `brew` if the upgrade is successfull and no longer be available under `/Applications`. If that is okay for you, proceed as detailed.

---

<div class="post-metadata">

**Author:** ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Post date:** [May 2, 2022, 8:44am UTC](https://discourse.julialang.org/t/how-to-remove-julia-from-homebrew-casks/80357/5 "2022-05-02T08:44:20Z")

</div>

Or the other way around, `brew remove julia`?

---

<div class="post-metadata">

**Author:** ![skleinbo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skleinbo/32/36080_2.png) [@skleinbo](https://discourse.julialang.org/u/skleinbo)\
**Post date:** [May 2, 2022, 8:51am UTC](https://discourse.julialang.org/t/how-to-remove-julia-from-homebrew-casks/80357/6 "2022-05-02T08:51:26Z")

</div>

Or that, but OP says

> so it will upgrade it when I run `brew upgrade`.

They appear to want to manage their installation via `brew`.

When [`juliaup`](https://github.com/JuliaLang/juliaup) becomes stable for MacOS, I would use that by the way.

---

<div class="post-metadata">

**Author:** ![roi.holtzman](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Post date:** [May 2, 2022, 8:56am UTC](https://discourse.julialang.org/t/how-to-remove-julia-from-homebrew-casks/80357/7 "2022-05-02T08:56:10Z")

</div>

Sorry for my typo! I meant that I do NOT want brew to manage my julia upgrade. I want to do it myself.  
So I guess that @gustaphe is right, and I can just do `brew remove julia`, right?

---

<div class="post-metadata">

**Author:** ![skleinbo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skleinbo/32/36080_2.png) [@skleinbo](https://discourse.julialang.org/u/skleinbo)\
**Post date:** [May 2, 2022, 9:04am UTC](https://discourse.julialang.org/t/how-to-remove-julia-from-homebrew-casks/80357/8 "2022-05-02T09:04:14Z")

</div>

Yes! 🙂

---

<div class="post-metadata">

**Author:** ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Post date:** [May 2, 2022, 9:11am UTC](https://discourse.julialang.org/t/how-to-remove-julia-from-homebrew-casks/80357/9 "2022-05-02T09:11:28Z")

</div>

Haha, I read it wrong the way you meant it.
