q icon indicating copy to clipboard operation
q copied to clipboard

Provide URI always pointing to the latest version (DEB package)

Open cawal opened this issue 6 years ago • 3 comments

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

cawal avatar Jul 30 '18 22:07 cawal

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)

petski avatar Oct 19 '18 10:10 petski

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.

bitti avatar Oct 19 '18 21:10 bitti

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"

petski avatar Oct 19 '18 21:10 petski