Skip to content

Instantly share code, notes, and snippets.

@aral
Created November 24, 2021 15:52
Show Gist options
  • Save aral/18a10a45e51981241d5d9759f67c8642 to your computer and use it in GitHub Desktop.
Save aral/18a10a45e51981241d5d9759f67c8642 to your computer and use it in GitHub Desktop.
To install ImageMagick 7 on any distribution that supports AppImage, copy and paste this one-line script into your favourite shell:
bash -lic "wget -O /tmp/magick https://download.imagemagick.org/ImageMagick/download/binaries/magick && chmod +x /tmp/magick && test \$(wget -qO- https://download.imagemagick.org/ImageMagick/download/binaries/digest.rdf | grep 'rdf:about=\"magick\".*' -A6 | sed -rn 's/.*<digest:sha256>(.*?)<\/digest:sha256>/\1/p') = \$(sha256sum /tmp/magick | sed -r 's/(.*)\s(.*)/\1/') && (sudo mv /tmp/magick /usr/local/bin/ && echo 'ImageMagick 7 successfully installed.') || (rm /tmp/magick && echo 'Installation failed. Security error: message digest verification failed for ImageMagick 7 AppImage binary.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment