homebrew – `brew install rar` failing with “Generic Artifact at ‘/usr/local/lib/default.sfx'”

SubhamOctober 6, 2022
Spread the love


> brew install rar
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 3 taps (homebrew/cask-versions, homebrew/core and homebrew/cask).
==> New Casks
diffusionbee                     mailmate-beta                    readdle-spark

==> Downloading https://www.rarlab.com/rar/rarmacos-x64-612.tar.gz
######################################################################## 100.0%
==> Installing Cask rar
==> Purging files for version 6.12 of Cask rar
Error: It seems there is already a Generic Artifact at '/usr/local/lib/default.sfx'.

What’s this error saying?

> ll /usr/local/lib/default.sfx
-rwxr-xr-x@ 1 pi  admin   214K  5 May 01:23 /usr/local/lib/default.sfx*

I guess some prior brew install has created this file, and it never got removed, and brew install rar wants to re-write it.

I did remove and reinstall brew lately.

I suppose I can just rename the file, and try again.

But is there a ‘correct’ solve?

PS I settled for brew install unar in the end. Confusing that there’s rar unrar and unar. If anyone can suggest which to best use, I am most grateful.

Categories

Leave a comment

Name *
Add a display name
Email *
Your email address will not be published
Website