Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to uninstall bun

I installed bun on windows (ubuntu) with this command:

https://bun.sh/install | bash

Now I want to remove bun and reinstall it (not upgrade)

like image 721
Aidin53 Avatar asked Dec 02 '25 11:12

Aidin53


1 Answers

If you look at the source for the installation script (and I mean, surely you did that already, before blindly executing code from the internet. Right? Right..?), you can find that

  • bun_install="${BUN_INSTALL:-$HOME/.bun}" – the default install directory is $HOME/.bun
  • the script additionally adds that to your shell's configuration, i.e.
    • .config/fish/config.fish if you're using Fish
    • .zshrc if you're using zsh
    • or you've manually added it to your path following instructions if you're using another shell.

Thus, uninstallation means:

  • removing ~/.bun
  • removing those shell configuration customizations
like image 99
AKX Avatar answered Dec 05 '25 01:12

AKX



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!