![]() The –force flag (or -f) will forcibly remove the package along with deleting all versions of that package / formula. There are two flags you can pass to the Homebrew uninstall command as well –force and –ignore-dependencies. You can confirm the package was removed by trying to run the command again, or by checking where Homebrew packages are installed to and you will find the package you removed is no longer there.Īdditional Homebrew Package Uninstall Options Removing a package from Homebrew is quick, as there is no need to download anything, it just deletes the Homebrew package from the Mac. Or you can use the remove command for the same effect: brew remove telnet The remove Homebrew package command looks like this: brew remove packageNameĪs you may have guessed by now, the remove and uninstall commands are exactly the same, and get the same result the removal of the Homebrew package.įor example, to remove and uninstall Telnet (assuming you installed telnet on the Mac with Homebrew anyway), you would use the following command string: brew uninstall telnet The uninstall Homebrew package command looks like this: brew uninstall packageName The proper way to remove a Homebrew package is with the uninstall or remove command. How to Uninstall & Remove Homebrew Packages We’re just talking about removing particular packages from Homebrew. It turns out that uninstalling packages / formula with Homebrew is very easy, and uninstalling and removing packages from Homebrew is just as easy as installing them in the first place. But what if you no longer need one, and you want to remove a particular Homebrew package? If you have installed Homebrew on a Mac to use as a package manager for various unix and command line utilities, you’ve probably also installed a handful of packages deemed useful to you. A Bourne-compatible shell for installation (e.g.Command Line Tools (CLT) for Xcode: xcode-select –install, /downloads or Xcode.Like Homebrew Cask, it uses simple commands. It’s the easiest way to install them on Mac OS X, just as it is on Linux. Enough procrastination, pretending that you are doing productive work by shaving off a few MBs of your hard drive.Uninstall Packages with Homebrew: The Homebrew command is the underlying package manager that installs all those UNIX and open-source utilities you might want. This can be adjusted with HOMEBREW_CLEANUP_MAX_AGE_DAYS. Remove old versions of installed formulae. Remove stale lock files and outdated downloads for all formulae and casks, and This command removes downloads for outdated formulas and casks. If you want to take your tidy-up routine to the next level, you can also run brew cleanup. Uninstall formulae that were only installed as a dependency of another formula So say goodbye to unneeded dependencies and messy brew list output. The autoremove command removes all the hanging, no longer needed packages from your computer. ![]() ![]() Luckily, there’s a simple solution to solve this problem. After a while, it is easy to end up with hundreds of programs that clutter your hard drive. Unfortunately, when you reverse this process with brew uninstall git, the main formula disappears, but you end up with two no longer needed dependencies. Compare it with the output of brew leaves that shows only top-level packages (most likely the ones you explicitly installed).įor instance, when you do brew install git, you add git executable and gettext and pcre2 as dependencies. Have you ever been wondering why brew list comes back with a gazillion packages even though you installed only a handful of them? These are your packages and all their dependencies. If you don’t, check out my “Homebrew - the best friend of the macOS user” that I published a few years ago. ![]() You’re reading it, so I assume you know what the brew is and most likely, you use it.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |