Skip to content

Instantly share code, notes, and snippets.

@joewiz
Last active August 17, 2017 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joewiz/d09ad062e71e4c04d8f599bf5610f636 to your computer and use it in GitHub Desktop.
Save joewiz/d09ad062e71e4c04d8f599bf5610f636 to your computer and use it in GitHub Desktop.
Install eXist on macOS with homebrew

Install eXist via Homebrew on macOS

First time

  • Install Homebrew via instructions at http://brew.sh
  • Delete previous installation of eXist at /Applications/eXist-db.app (if present), because Homebrew will refuse to install over a non-Homebrew installation.
  • Install eXist via:
$ brew cask install exist-db

You will see output like this:

==> Satisfying dependencies
==> Downloading https://bintray.com/artifact/download/existdb/releases/eXist-db-3.4.1.dmg
######################################################################## 100.0%
==> Verifying checksum for Cask exist-db
==> Installing Cask exist-db
==> Moving App 'eXist-db.app' to '/Applications/eXist-db.app'.
🍺  exist-db was successfully installed!

Upgrading to a new version

$ brew update
$ brew cask reinstall exist-db

You will see output like this:

==> Satisfying dependencies
==> Downloading https://bintray.com/artifact/download/existdb/releases/eXist-db-3.4.1.dmg
Already downloaded: /Users/joe/Library/Caches/Homebrew/Cask/exist-db--3.4.1.dmg
==> Verifying checksum for Cask exist-db
==> Uninstalling Cask exist-db
==> Removing App '/Applications/eXist-db.app'.
==> Installing Cask exist-db
==> Moving App 'eXist-db.app' to '/Applications/eXist-db.app'.
🍺  exist-db was successfully installed!

Checking version number

$ brew cask info exist-db
exist-db: 3.4.1
https://exist-db.org/exist/apps/homepage/index.html
/usr/local/Caskroom/exist-db/3.4.1 (51.0KB)
From: https://github.com/caskroom/homebrew-cask/blob/master/Casks/exist-db.rb
==> Name
eXist-db
==> Artifacts
eXist-db.app (app)

Uninstalling

$ brew cask uninstall exist-db
==> Uninstalling Cask exist-db
==> Removing App '/Applications/eXist-db.app'.

Submitting new version to Homebrew

$ cask-repair exist-db
Updating taps… Updated 1 tap (homebrew/core).
No changes to formulae.
A `joewiz` remote does not exist. Creating it now…
Updating joewiz
From https://github.com/caskroom/homebrew-cask
 * [new branch]            master     -> joewiz/master
new remote: joewiz
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
cask 'exist-db' do
  version '3.4.0'
  sha256 '40275a5e997f2e35166eec7c31faec06641ce9a8a1db487e0ef7883ed16902d5'

  # bintray.com/artifact/download/existdb was verified as official when first introduced to the cask
  url "https://bintray.com/artifact/download/existdb/releases/eXist-db-#{version}.dmg"
  name 'eXist-db'
  homepage 'https://exist-db.org/exist/apps/homepage/index.html'

  app 'eXist-db.app'
end
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Type the new version (or leave blank to use current one, or use `s` to skip)
> 3.4.1
==> Downloading external files for Cask exist-db
==> Downloading https://bintray.com/artifact/download/existdb/releases/eXist-db-3.4.1.dmg
######################################################################## 100.0%
==> No checksum defined for Cask exist-db, skipping verification
==> Success! Downloaded to -> /Users/joe/Library/Caches/Homebrew/Cask/exist-db--3.4.1.dmg
diff --git a/Casks/exist-db.rb b/Casks/exist-db.rb
index 99f7887e69..3f824fe61b 100644
--- a/Casks/exist-db.rb
+++ b/Casks/exist-db.rb
@@ -1,6 +1,6 @@
 cask 'exist-db' do
-  version '3.4.0'
-  sha256 '40275a5e997f2e35166eec7c31faec06641ce9a8a1db487e0ef7883ed16902d5'
+  version '3.4.1'
+  sha256 'c4e00257a8de538f68615f211d8fca1c7e835779d5b70dcc37db563acd4e4647'
 
   # bintray.com/artifact/download/existdb was verified as official when first introduced to the cask
   url "https://bintray.com/artifact/download/existdb/releases/eXist-db-#{version}.dmg"
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Is everything correct? ([y]es / [n]o / [e]dit) y
Submitting…


You can upgrade the cask right now from your personal branch:
  brew cask reinstall https://raw.githubusercontent.com/joewiz/homebrew-cask/cask_repair_update-exist-db/Casks/exist-db.rb

Submitted (https://github.com/caskroom/homebrew-cask/pull/37729)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment