How do I reinstall all packages installed with Homebrew?

JAL

I recently had an issue where all of my linked binaries were removed from /usr/local/bin/. Fortunately, most of these were just dynamic links to binaries installed with Homebrew, so after reinstalling Homebrew I need to get them back. Is there a way to force reinstall all installed packages and binaries with Homebrew? Maybe piping the output of brew list into brew reinstall?

Albert Timashev

It's as simple as that:

$ brew list | xargs brew reinstall

You don't need to uninstall anything, because doing so you may lose your settings and configs.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I reinstall all installed packages in Alpine Linux?

From Dev

How to reinstall all installed packages with zypper

From Dev

How can I reinstall or recompile already installed packages in Julia?

From Dev

How do I upgrade all of my installed packages in OpenWRT?

From Dev

How do I list all packages installed for a specific architecture?

From Dev

How do I list all packages belonging to a group (installed and uninstalled)?

From Dev

I updated ghc to a new version, how do I automatically reinstall all cabal packages?

From Dev

I updated ghc to a new version, how do I automatically reinstall all cabal packages?

From Dev

How can I remove outdated installed versions of Homebrew packages?

From Dev

How can I reinstall all R packages from the superuser to the user?

From Dev

How can I determine which packages I have installed via homebrew and which were installed manually?

From Dev

File corrupted, how do I reinstall packages on Debian?

From Dev

How do I reinstall the software packages that came with Ubuntu 18.04?

From Dev

Installed GRUB in legacy mode, how do I reinstall it in EFI mode?

From Java

How do I use installed packages in PyCharm?

From Dev

How do I list the default installed packages?

From Dev

How can I mark all packages with installed dependents as "Automatically Installed"?

From Dev

How do I update MySQL installed with Homebrew on a Mac

From Java

How do I find all installed packages that depend on a given package in NPM?

From Dev

How do I automatically keep all locally installed Chocolatey packages up to date?

From Dev

How do I list all installed packages from the command line in bash / osX

From Dev

Fedora: How do I force all installed packages to a single release version?

From Dev

RMarkdown: Why do I have to reinstall all packages everytime I knit?

From Dev

RMarkdown: Why do I have to reinstall all packages everytime I knit?

From Dev

How can I uninstall all the packages I've installed today?

From Java

How do I force Bundler to reinstall all of my gems?

From Dev

How do you remove MacPorts and all the packages it has installed?

From Dev

How do I view packages that I have installed

From Dev

How to list all installed packages

Related Related

  1. 1

    How do I reinstall all installed packages in Alpine Linux?

  2. 2

    How to reinstall all installed packages with zypper

  3. 3

    How can I reinstall or recompile already installed packages in Julia?

  4. 4

    How do I upgrade all of my installed packages in OpenWRT?

  5. 5

    How do I list all packages installed for a specific architecture?

  6. 6

    How do I list all packages belonging to a group (installed and uninstalled)?

  7. 7

    I updated ghc to a new version, how do I automatically reinstall all cabal packages?

  8. 8

    I updated ghc to a new version, how do I automatically reinstall all cabal packages?

  9. 9

    How can I remove outdated installed versions of Homebrew packages?

  10. 10

    How can I reinstall all R packages from the superuser to the user?

  11. 11

    How can I determine which packages I have installed via homebrew and which were installed manually?

  12. 12

    File corrupted, how do I reinstall packages on Debian?

  13. 13

    How do I reinstall the software packages that came with Ubuntu 18.04?

  14. 14

    Installed GRUB in legacy mode, how do I reinstall it in EFI mode?

  15. 15

    How do I use installed packages in PyCharm?

  16. 16

    How do I list the default installed packages?

  17. 17

    How can I mark all packages with installed dependents as "Automatically Installed"?

  18. 18

    How do I update MySQL installed with Homebrew on a Mac

  19. 19

    How do I find all installed packages that depend on a given package in NPM?

  20. 20

    How do I automatically keep all locally installed Chocolatey packages up to date?

  21. 21

    How do I list all installed packages from the command line in bash / osX

  22. 22

    Fedora: How do I force all installed packages to a single release version?

  23. 23

    RMarkdown: Why do I have to reinstall all packages everytime I knit?

  24. 24

    RMarkdown: Why do I have to reinstall all packages everytime I knit?

  25. 25

    How can I uninstall all the packages I've installed today?

  26. 26

    How do I force Bundler to reinstall all of my gems?

  27. 27

    How do you remove MacPorts and all the packages it has installed?

  28. 28

    How do I view packages that I have installed

  29. 29

    How to list all installed packages

HotTag

Archive