简体   繁体   中英

Mac os - brew install unrar fails

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.

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

See cask for details:

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

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM