brew cask install kdiff3
Error: Cask 'kdiff3' is unavailable: No Cask with this name exists.
brew install kdiff3
Error: No available formula with the name "kdiff3"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
brew search kdiff3
No formula or cask found for "kdiff3".
Closed pull requests:
tap_migrations: remove kdiff3 (https://github.com/Homebrew/homebrew-core/pull/43798)
Delete kdiff3.rb (https://github.com/Homebrew/homebrew-cask/pull/67726)
p4v 18.3-1719707: Add CLI-accessible commands to work with Git out of the box (https://github.com/Homebrew/homebrew-cask/pull/54957)
Update kdiff3 to 0.9.98 (https://github.com/Homebrew/homebrew-cask/pull/31404)
Update kdiff3 - add shimscript (https://github.com/Homebrew/homebrew-cask/pull/35967)
Secure URLs (https://github.com/Homebrew/homebrew-cask/pull/52975)
kdiff3 migrated to cask (https://github.com/Homebrew/homebrew-core/pull/3335)
kdiff3 0.9.98 (https://github.com/Homebrew/legacy-homebrew/pull/31147)
Added formula kdiff3 (https://github.com/Homebrew/legacy-homebrew/pull/5724)
Update kdiff3 to 0.9.97 (https://github.com/Homebrew/legacy-homebrew/pull/14268)
diffpdf: Bump to 2.1.3 (https://github.com/Homebrew/legacy-homebrew/pull/24912)
Doctor: suggest stashing untracked files rather than deleting (https://github.com/Homebrew/legacy-homebrew/pull/15837)
Upgrade kdiff3 to 0.9.98 (https://github.com/Homebrew/homebrew-cask/pull/5231)
Add binary link to kdiff3 (https://github.com/Homebrew/homebrew-cask/pull/3476)
Add kdiff3.app (https://github.com/Homebrew/homebrew-cask/pull/1847)
bugfix: kdiff3 cask name incorrect (https://github.com/Homebrew/homebrew-cask/pull/1990)
Create kdiff3 v0.9.97 cask (https://github.com/Homebrew/homebrew-cask/pull/1292)
New Cask Kdiff3 v0.9.97 (https://github.com/Homebrew/homebrew-cask/pull/1287)
More efficient listing of installed Casks (https://github.com/Homebrew/homebrew-cask/pull/1778)
brew --version
Homebrew 2.1.16
Homebrew/homebrew-core (git revision 2a800; last commit 2019-11-20)
Homebrew/homebrew-cask (git revision 40638; last commit 2019-11-20)
So how to install kdiff3 using brew on mac os?
kdiff3 was removed from Homebrew’s packages in August 2019 because its last compatible version is five years old. If you really want to install it, you can checkout the formula (package) file in the GitHub repo from just before its removal. You can either copy the file locally or directly use the URL:
brew cask install https://raw.githubusercontent.com/Homebrew/homebrew-cask/6a96e5ea44803e52a43c0c89242390f75d1581ab/Casks/kdiff3.rb
Related
I run the following code, which show that there are no openssl repo find in brew.
My Mac is macOS Big Sur 11.3.1
% brew install openssl
Updating Homebrew...
fatal: Could not resolve HEAD to a revision
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> Updated Casks
Updated 1 cask.
Warning: No available formula or cask with the name "openssl".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
This formula was found in a tap:
homebrew/portable-ruby/portable-openssl
To install it, run:
brew install homebrew/portable-ruby/portable-openssl
UPDATE
Seems that my brew can't install ccache either like the following. It is more of a brew issue?
brew install ccache
try this put it in terminal and run:
brew uninstall openssl; brew uninstall openssl; brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
The following commands help
cd /usr/local/Homebrew/Library/Taps/homebrew/
rm -rf homebrew-core
git clone https://github.com/Homebrew/homebrew-core.git
try this:
git -C $(brew --repo homebrew/core) checkout master
^This should be the fix anytime you see the error "Could not resolve HEAD to a revision, as you may find at the bottom of the output when running "brew doctor"
I'm having trouble with brew install <PackageName>
I had macOS BigSur and could use commands like brew easily but in recent downgrade (Mojave) I can't do it anymore
it freeze about 60 second and reply with (If I getting it right) that can't update the main repository
CODE :
Updating Homebrew...
error: Not a valid ref: refs/remotes/origin/master
fatal: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: Could not resolve HEAD to a revision
==> Homebrew has enabled anonymous aggregate formula and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics have been recorded yet (nor will be during this `brew` run).
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> New Casks
8x8-work disk-expert guilded odbc-manager ubports-installer
diagnostics duplicate-file-finder hush pktriot
==> Updated Casks
Updated 352 casks.
==> Deleted Casks
adafruit-arduino beautune caramba-switcher
adobe-lens-profile-creator blue-jeans-browser-plugin
Warning: No available formula or cask with the name "htop".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> 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.
Homebrew is managed by git repos. From the output, homebrew is detached and homebrew-core repo is missing.
Let's try following commands to fix the repos.
# Reset remote repo for Homebrew, the pkg manager itself
git -C "$(brew --repo)" remote set-url origin https://github.com/Homebrew/brew.git
# Reset origin for homebrew taps
BREW_TAPS="$(brew tap)"
for tap in core cask{,-fonts,-drivers,-versions}; do
if echo "$BREW_TAPS" | grep -qE "^homebrew/${tap}\$"; then
git -C "$(brew --repo homebrew/${tap})" remote set-url origin https://github.com/Homebrew/homebrew-${tap}.git
fi
done
brew update-reset
If it doesn't work, you may have to reinstall Homebrew.
I'm trying to install maven on my MAC, but When I run the command : brew install maven
I'm getting the following error:
Error: No similarly named formulae found.
==> 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.
My brew version is:
Homebrew 3.2.3-59-gb18bbac
Homebrew/homebrew-core (git revision b18bbacce; last commit 2021-07-21)
Homebrew/homebrew-cask (git revision 1a48b289dc; last commit 2021-07-23)
I've installed cocoapods by this - https://apple.stackexchange.com/questions/418222/installing-cocoapods-to-macos-catalina/418230#418230
It istalled cocoapods v1.5.2. Now I want to update the version to the latest v1.10.0.
So I've used -
brew upgrade cocoapods
I've also tried this -
brew install cocoapods#1.10.0
But I'm getting -
Error: This command updates brew itself, and does not take formula names.
Use `brew upgrade cocoapods` instead.
Fahims-Mac-mini:~ fahimrahman$ brew upgrade cocoapods
Fahims-Mac-mini:~ fahimrahman$ brew upgrade cocoapods
Fahims-Mac-mini:~ fahimrahman$ brew install cocoapods#1.10.0
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "cocoapods#1.10.0".
==> 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.
Also tried this -
sudo gem install cocoapods
but still is not working on my device. So How can I update the cocoapods version using brew?
I had the same issue and resolved. This was bugging me, since in the website https://formulae.brew.sh/formula/cocoapods latest stable is 1.10.1 but still brew installed me1.5.4
Figure out The problem by using
brew doctor
I got the below warning.
Some taps are not on the default git origin branch and may not receive
updates. If this is a surprise to you, check out the default branch with:
git -C $(brew --repo homebrew/core) checkout master
Then, as per suggestion, I did. (Fix the related issues which comes for you)
git -C $(brew --repo homebrew/core)
Then, brew install cocoapods installed the latest version for me.
Hope it solves.
You can't do much with homebrew.
Homebrew allows installing v1.10.1 only
In my case fix this issue by updating ruby to 2.7 to install cocoapods v1.10.0.
rvm install ruby-2.7
Note: Use the specific version of ruby as per your macOS compatibility
I uninstalled brew uninstall cocoapods then reinstalled by sudo gem install cocoapods , it worked.
For me brew upgrade cocoapods shows Warning: cocoapods 1.11.2_2 already installed, so I've unistalled them with brew uninstall cocoapods and the install again with brew install cocoapods and now pod --version shows 1.11.3
I used brew upgrade cocoapods and it works just fine. Take a look at these terminal screenshots. brew upgrade cocoapods
upgrading cocoapods
I have been struggling with this for a few hours. I am on a Mac using Yosemite. I had homebrew installed, and was using git just fine. I tried doing $git add -i and I got this error:
Can't locate Git.pm in #INC (#INC contains:
So I followed the instructions here:
Can't locate Git.pm in #INC
$brew uninstall git worked fine, but after I tried to $brew install git I've been stuck in a terrible cycle.
% brew install git
Error: git-git already installed
To install this version, first `brew unlink git'
% brew unlink git
Error: No such keg: /usr/local/Cellar/git
% brew link git
Error: No such keg: /usr/local/Cellar/git
% git --version
git version 1.9.3 (Apple Git-50)
% brew upgrade git
==> Upgrading 1 outdated package, with result:
git 2.2.2
Error: /usr/local/Library/LinkedKegs/git is not a valid keg
% brew install git
Error: git-git already installed
To install this version, first `brew unlink git'
%
I just want to get homebrew & git back to normal and linked to the correct repo again. I'm really rough around the edges at this stuff, so any help would be greatly appreciated!
Give another go at force removing the brewed version of git
brew uninstall --force git
Then cleanup any older versions and clear the brew cache
brew cleanup -s git
Remove any dead symlinks
brew cleanup --prune-prefix
Then try reinstalling git
brew install git
If that doesn't work, I'd remove that installation of Homebrew altogether and reinstall it. If you haven't placed anything else in your brew --prefix directory (/usr/local by default), you can simply rm -rf $(brew --prefix). Otherwise the Homebrew wiki recommends using a script at https://gist.github.com/mxcl/1173223#file-uninstall_homebrew-sh
Had a similar issue while installing "Lua" in OS X using homebrew. I guess it could be useful for other users facing similar issue in homebrew.
On running the command:
$ brew install lua
The command returned an error:
Error: /usr/local/opt/lua is not a valid keg
(in general the error can be of /usr/local/opt/ is not a valid keg
FIXED it by deleting the file/directory it is referring to, i.e., deleting the "/usr/local/opt/lua" file.
root-user # rm -rf /usr/local/opt/lua
And then running the brew install command returned success.
Os X Mojave 10.14 has:
Error: The Command Line Tools header package must be installed on
Mojave.
Solution. Go to
/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
location and install the package manually. And brew will start working and we can run:
brew uninstall --force git
brew cleanup -s git
brew cleanup --prune-prefix
brew install git