Skip to content

Instantly share code, notes, and snippets.

@thegreyd
Forked from rossant/latest_pandoc.sh
Last active April 20, 2017 16:05
Show Gist options
  • Save thegreyd/88d7a4c4a08aa89a02c86ff4a912c493 to your computer and use it in GitHub Desktop.
Save thegreyd/88d7a4c4a08aa89a02c86ff4a912c493 to your computer and use it in GitHub Desktop.
Install latest .deb KeepassXC, using the GitHub release page
#!/bin/bash
#bash script to install latest keepassxc release
#fetch the stable deb package from github release page
#Requires superuser permission
#page is not guaranteed to update with latest release
#verify for latest releases here: https://github.com/keepassxreboot/keepassxc/releases
URL="https://github.com/magkopian/keepassxc-debian/releases/latest"
RELEASEPAGE="$(wget $URL -q -O -)"
DEBURL="$(echo $RELEASEPAGE | grep -oP '"([^"]+_stable.deb)"')"
DEBURL="${DEBURL:1:-1}"
URL="https://github.com/$DEBURL"
wget $URL -O /tmp/KeepassXC.deb
sudo dpkg -i /tmp/KeepassXC.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment