Martin Afanasjew eb5d90c1df unlinkapps: avoid deleting too many symlinks
Use `start_with?` to make sure the symlink actually points into one of
the Homebrew directories (depending on given arguments). Previously,
only a substring match was used, which would also remove a symlink to a
hypothetical `/opt/unrelated/usr/local/opt/Unrelated.app`. Even if
unlikely to occur, altering stuff unrelated to Homebrew is bad.

Furthermore, make sure to always use a trailing slash with directories.
Otherwise, e.g., `brew unlinkapps qt` will unlink .app bundles of both
`qt` and `qt5` if both are installed and `brew linkapps qt qt5` was
issued before. (Please ignore that `qt` and `qt5` offer a conflicting
set of .app bundles. This will have to be addressed elsewhere.)

Closes Homebrew/homebrew#45174.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-20 08:38:54 +01:00
2014-11-25 22:27:03 -05:00
2015-10-18 14:12:03 +01:00
2015-09-18 09:54:29 +01:00
2015-08-29 15:43:16 +01:00
2015-05-08 19:19:28 -07:00
2014-10-26 15:23:42 +00:00
2015-01-01 23:55:12 -05:00
2015-10-13 12:04:38 +01:00

Homebrew

Features, usage and installation instructions are summarised on the homepage.

What Packages Are Available?

  1. Type brew search for a list.
  2. Or visit braumeister.org to browse packages online.
  3. Or use brew search --desc to browse packages from the command line.

More Documentation

brew help, man brew or check our documentation.

Troubleshooting

First, please run brew update and brew doctor.

Second, read the Troubleshooting Checklist.

If you don't read these it will take us far longer to help you with your problem.

Security

Please report security issues to security@brew.sh.

This is our PGP key which is valid until June 17, 2016.

Who Are You?

Homebrew's current maintainers are Misty De Meo, Adam Vandenberg, Xu Cheng, Mike McQuaid, Baptiste Fontaine, Brett Koonce, Dominyk Tiller, Tim Smith and Alex Dunn.

Homebrew was originally created by Max Howell.

License

Code is under the BSD 2 Clause (NetBSD) license. Documentation is under the Creative Commons Attribution license.

Sponsors

Our CI infrastructure was paid for by our Kickstarter supporters.

Our CI infrastructure is hosted by The Positive Internet Company.

Our bottles (binary packages) are hosted by Bintray.

Downloads by Bintray

Description
🍺 The missing package manager for macOS (or Linux)
Readme 144 MiB
4.6.25 Latest
2025-09-16 21:53:50 +00:00
Languages
Ruby 92%
Shell 5.2%
Roff 2.1%
HTML 0.5%