'List up my apps installable with brew-cask

I want to know which of my apps are available to install with brew cask command.
How can I do it?


Specification
What I want to do is to extract apps that are also available on brew-cask from all apps in /Applications and list up their package-names.

# /Applications
Alfred 4.app
App Store.app
AppCleaner.app
Automator.app
Be Focused Pro.app
BetterTouchTool.app
Bitdefender
Bluetooth Explorer.app
Books.app
Calculator.app
Calendar.app
CheatSheet.app
Chess.app
Clipy.app
...
# package names of apps available on brew-cask
alfred
appcleaner
bettertouchtool
calibre
cheatsheet
clip
...


Solution 1:[1]

You can use brew search on your terminal, like theses examples :

  • brew search vlc
  • brew search mamp
  • brew search slack
  • ...etc

You will get the available brew casks corresponding your search and you can install it with brew cask install mamp (replace mamp with your own app)

You can also go on this page https://formulae.brew.sh/cask/ to see all available casks.

If you app is already installed, you need to use brew cask install --force mamp to force the reinstallation and link your app already installed.

For more explanations, you can go here https://sourabhbajaj.com/mac-setup/Homebrew/Cask.html.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1