Mac os - brew install unrar fails
Asked Answered
C

4

52

I'm trying to run brew install unrar on mac os Big Sur and I'm getting the following error:

Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> Updated Casks
Updated 1 cask.

==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "unrar".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

Please advise on how I can resolve this.

Cervin answered 4/2, 2021 at 8:48 Comment(2)
A search for "brew install unrar fails" brings up Unrar has been removed, but I need unrar. Alternatives? Maybe you could make an answer from that.Doura
Thank you! it resolved the issue.Cervin
B
61

Use brew install rar to install both the rar and unrar binaries.

Homebrew formulae: https://formulae.brew.sh/cask/rar

See cask source for details:

https://github.com/Homebrew/homebrew-cask/blob/master/Casks/r/rar.rb

Borgeson answered 1/8, 2021 at 19:37 Comment(1)
given github link is brokenHedden
R
17

Just use brew install rar instead of brew install unrar

For rar files

Try using Homebrew...

In a terminal type:

brew install rar

Now to use it just navigate to your file directory and type:

  • To view the rar file:
unrar l <filename>
  • To extract the rar file in the same location:
unrar x <filename>
  • To extract the rar file in the desired location:
unrar x <filename>

In case you face any permission issue: Developer cannot be verified.
'rar' cannot be opened because the developer cannot be verified.
Follow this process:
Open System Preferences -> Security and Privacy -> General -> Click the lock to make changes.


For zip files

In the terminal (at .zip location):

unzip <filename>
Riesling answered 2/12, 2022 at 7:13 Comment(1)
Great answer! Provided an answer for main question, as well as all the followup questions I hadKrell
K
5

Using the default rar formulae may cause permission errors in recent macOS versions. So you can install unrar using this custom formulae:

brew install carlocab/personal/unrar

See discussion about it here: Unrar has been removed, but I need unrar. Alternatives?.

Killion answered 7/8, 2023 at 15:52 Comment(0)
A
3

Go to mac's system settings/privacy&security/scroll down to security allow unrar app, you should see it as blocked.

Aright answered 12/6, 2023 at 13:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.