Homebrew / brew

🍺 The missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
40.78k stars 9.58k forks source link

Brew thinks fdupes is outdated even after upgrading #1338

Closed tetov closed 7 years ago

tetov commented 7 years ago

Every time I run brew upgrade brew thinks fdupes is outdated and installs it again.

$ brew info fdupes
fdupes: stable 1.6.1 (bottled)
Identify or delete duplicate files
https://github.com/adrianlopezroche/fdupes
/usr/local/Cellar/fdupes/1.6.1 (7 files, 44.4K) *
  Poured from bottle on 2016-10-21 at 15:21:19
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/fdupes.rb
$ fdupes --version 
fdupes 1.6.1
$ which fdupes
/usr/local/bin/fdupes
$ brew upgrade
==> Upgrading 1 outdated package, with result:
fdupes 1.6.1
==> Upgrading fdupes
==> Downloading https://homebrew.bintray.com/bottles/fdupes-1.6.1.sierra.bottle.1.tar.gz
Already downloaded: /Users/gudrun/Library/Caches/Homebrew/fdupes-1.6.1.sierra.bottle.1.tar.gz
==> Pouring fdupes-1.6.1.sierra.bottle.1.tar.gz
🍺  /usr/local/Cellar/fdupes/1.6.1: 7 files, 44.4K
$ brew cleanup
$ brew upgrade
==> Upgrading 1 outdated package, with result:
fdupes 1.6.1
==> Upgrading fdupes
==> Downloading https://homebrew.bintray.com/bottles/fdupes-1.6.1.sierra.bottle.1.tar.gz
Already downloaded: /Users/gudrun/Library/Caches/Homebrew/fdupes-1.6.1.sierra.bottle.1.tar.gz
==> Pouring fdupes-1.6.1.sierra.bottle.1.tar.gz
🍺  /usr/local/Cellar/fdupes/1.6.1: 7 files, 44.4K

I have gone through the troubleshooting steps prior to this.

tetov commented 7 years ago

This solved my problem.

$ brew rm fdupes
Uninstalling /usr/local/Cellar/fdupes/1.6.1... (7 files, 44.4K)
$ brew install fdupes
==> Downloading https://homebrew.bintray.com/bottles/fdupes-1.6.1.sierra.bottle.1.tar.gz
Already downloaded: /Users/gudrun/Library/Caches/Homebrew/fdupes-1.6.1.sierra.bottle.1.tar.gz
==> Pouring fdupes-1.6.1.sierra.bottle.1.tar.gz
🍺  /usr/local/Cellar/fdupes/1.6.1: 7 files, 44.4K
$ brew upgrade
$
vitorgalvao commented 7 years ago

Closing as self-solved.

CodingAnarchy commented 7 years ago

I'm having the same issue. Uninstalling and reinstalling fixed the issue for me as well, but ideally that wouldn't be necessary.