1

I interrupted Homebrew installation from the Terminal by pressing ^ Control C because I realized I have little space left in the hard disk.

Now I want to clean the data that was incompletely written to my hard disk. What should I do?

I ran following commands in the Terminal to install:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

This was interrupted. Now I keep getting message of low disc space.

1 Answer 1

2

Homebrew conveniently has a few ways to uninstall it"

  • Issue the command

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
    
  • They also conveniently provide an Uninstall script you can download that should remove the files from the aborted installation.

Either of these methods should get Homebrew uninstalled.

2
  • Ill give it a try. So it will clean any partial data written to the hard disk right? Most of the installers have a property that if they get interrupted they automatically perform the cleanup especially in Windows. I am not sure how the things are managed in OSX because when I interrupted the installation in the Terminal. The process simply stopped and no cleanup was done.
    – gfdsal
    Commented Apr 15, 2020 at 14:04
  • 1
    It's completely unlike windows - there's no Registry. The script will go in and delete directories where the program is supposed to be. If the directory isn't there, it will just generate a message that it couldn't be found and continue on.
    – Allan
    Commented Apr 15, 2020 at 14:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .