Skip to content

Instantly share code, notes, and snippets.

@teju85
Created April 19, 2023 10:46
Show Gist options
  • Save teju85/7c89dd41c26bced250f5028e25ed1f56 to your computer and use it in GitHub Desktop.
Save teju85/7c89dd41c26bced250f5028e25ed1f56 to your computer and use it in GitHub Desktop.
This script installs the latest release version of ripgrep
#!/bin/bash
DEB_URL=$(curl -s https://api.github.com/repos/BurntSushi/ripgrep/releases/latest | grep browser_download_url | grep deb | sed -e 's/.*": "//' -e 's/"//')
echo "Downloading latest ripgrep debian package: $DEB_URL"
curl -Lo ripgrep.deb $DEB_URL
sudo apt install -y ./ripgrep.deb
rm -f ripgrep.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment