Skip to content

Instantly share code, notes, and snippets.

@strobo
Last active March 23, 2019 07:45
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 strobo/715feeea099c9efb190b5d5de8ad2552 to your computer and use it in GitHub Desktop.
Save strobo/715feeea099c9efb190b5d5de8ad2552 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -Ceu
install_deb() {
local _url
local _dir
# set url
_url=$1
# make temp dir
_dir="$(mktemp -d 2>/dev/null)"
# download deb file
wget ${_url} -P ${_dir}
# install
sudo dpkg -i ${_dir}/*.deb
#remove temp dir and deb file
rm -r ${_dir}
}
install_deb "https://www.segger.com/downloads/jlink/Ozone_Linux_x86_64.deb"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment