brew: Unable to install devel if stable installed.

Description

➜ vlad:Homebrew$ brew install ack                                        master
==> Using the sandbox
==> Downloading http://beyondgrep.com/ack-2.14-single-file
Already downloaded: /Users/vlad/Library/Caches/Homebrew/ack-2.14.14-single-file
==> pod2man /usr/local/Cellar/ack/2.14/bin/ack ack.1
🍺  /usr/local/Cellar/ack/2.14: 3 files, 182.9K, built in 1 second
➜ vlad:Homebrew$ brew install ack --devel                                master
Warning: ack-2.14 already installed

Workaround

We’d probably want to warn user that stable keg is linked and suggest user unlinking it. After the keg have been unlinked we should be able to install any version that is newer than the latest version installed in the Cellar e.g. HEAD or devel.

TODO

  • WIP Improve install #1343
  • Improve upgrade

CC @Homebrew/maintainers

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 31 (31 by maintainers)

Most upvoted comments

unlink + install -> succeed, and prior version is kept upgrade -> succeed, and prior version is kept uninstall + install -> succeed, but prior version is removed due to the uninstall

Makes sense to me 👍