q
q copied to clipboard
Provide URI always pointing to the latest version (DEB package)
It's a minor request, but would be nice to have a URI always pointing for the latest stable version, thus people could use it for installing q in automated scripts. Something like:
https://github.com/harelba/packages-for-q/raw/master/deb/q-text-as-data_latest_all.deb
Poor mans way to do this:
curl -s https://api.github.com/repos/harelba/q/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d '"' -f 4 \
| wget -qi -
(Based on https://gist.github.com/steinwaywhw/a4cd19cda655b8249d908261a62687f8)
You know q
but don't know about jq
!?
curl -s https://api.github.com/repos/harelba/q/releases/latest \
| jq -r '.assets[].browser_download_url | scan(".*deb$")' \
| wget -qi -
Seems simpler and less fragile.
Hehe, I do, but jq doesn't seem to be installed on most default systems though. In my defense, I told its a poor man's way of doing it. OP will get the drill.
P.s. found out Debian and Ubuntu have q in their package archives as "python-q-text-as-data"