How can I install a specific version of drgaph using the install script?
curl https://get.dgraph.io -sSf | bash
It always install the latest one.
How can I install a specific version of drgaph using the install script?
curl https://get.dgraph.io -sSf | bash
It always install the latest one.
You can copy the script and change the version
curl https://get.dgraph.io > /tmp/get.sh
But if you need this for sure, open an issue in Github.
Cheers.
I did this, but it detects the previous version and says its already installed.
I also dont know how to uninstall dgraph
so see if this work if I start from zero
You need to edit this
if [ "$1" == "" ]; then
tag=$release_version
else
to
if [ "$1" == "" ]; then
tag=v1.0.14
else
just run
rm /usr/local/bin dgraph
rm /usr/local/bin dgraph-ratel
Thanks!
this worked!
I also wondered the same some time ago. Michel, I believe we need an easy way to install an old version (e.g. for testing purposes). Would be nice to have an option in get.dgraph script. Can we create a ticket in GitHub / improve the script and then document this in our doc, in the section “Automatic download”? Many thanks,
Ok, pls create the ticket so I’ll work on it.
Hi @MichelDiz, thanks for all the support.
I am now trying to install dgraph
on an AWS EC2 instance but I am getting an error.
I call
curl https://get.dgraph.io -sSf | VERSION=1.1.1 bash
And get:
Latest release version is v1.2.1.
Downloading checksum file for v1.2.1 build.
######################################################################## 100,0%
Download complete.
Comparing checksums for dgraph binaries
Downloading https://github.com/dgraph-io/dgraph/releases/download/v1.2.1/dgraph-linux-amd64.tar.gz
######################################################################## 100,0%
Download complete.
Inflating binaries (password may be required).
Installation failed. Please try again.
There was some problem while installing Dgraph. Please share the output of this script with us on https://dgraph.slack.com or http://discuss.dgraph.io so that we can resolve the issue for you.
[root@ip-172-31-0-
It seems it tries to install v1.2.1? In any case, the error is the same if I run the manually modified script that was correctly installing v1.1.1 instead of curl.
I am ot sure if this is a dgraph issue or a EC2 one.
Sorry, but It is not merged yet. It is yet to be reviewed. (The PR with new environment variables and args)
It seems an issue independent of the version parameter. I get the same error if I run
[root@ip-172-31-0-180 ec2-user]# curl https://get.dgraph.io -sSf | bash
Do you agree to the terms of the Dgraph Community License? [Y/n]
Latest release version is v1.2.1.
Downloading checksum file for v1.2.1 build.
######################################################################## 100,0%
Download complete.
Comparing checksums for dgraph binaries
Downloading https://github.com/dgraph-io/dgraph/releases/download/v1.2.1/dgraph-linux-amd64.tar.gz
######################################################################## 100,0%
Download complete.
Inflating binaries (password may be required).
Installation failed. Please try again.
There was some problem while installing Dgraph. Please share the output of this script with us on https://dgraph.slack.com or http://discuss.dgraph.io so that we can resolve the issue for you.
Today the script doesn’t support any params or args other the ones already in docs. I did some changes in the script that will make it possible to do what you wanna do.
For now, you have to edit the script by yourself to make it work.
The repo is private, so you can’t see the PR. But when it is done I’ll warn you.
This error happens cuz you need to run sudo.
I made sudo su
and I am running everything as the root user. Should I be using sudo
instead?
Hum, if you are running Root. It might be other thing. What OS are you using? I gonna try this creating a VM locally.
Update:
Now the version flag and environment variable are supported and it is live.
The user will be able to run like this
curl https://get.dgraph.io -sSf | bash -s -- --version=v2.0.0-beta1
or using Environment variables:
curl https://get.dgraph.io -sSf | VERSION=v1.2.1 bash
Also there is
--version='2.0.1' : Choose Dgraph's version manually."
--systemd : Install Dgraph as a service."
--accept-license : Automatically agree to the terms of the Dgraph Community License."
Env vars:
INSTALL_IN_SYSTEMD= y / n
ACCEPT_LICENSE= y / n