Please add to the site https://riot.im/download/desktop/ and https://riot.im/desktop.html appropriate Linux repository adding commands. As I see from https://riot.im/packages/debian/dists/ then there are Debian and Ubuntu supported.
E.g.:
Check your Linux distribution.
sudo apt update && sudo apt-get -y install lsb-release && sudo ldconfig && sudo dpkg --configure -a && sudo apt-get clean
lsb_release -da | grep -i codename
Codename: wheezy
Codename: xenial
lsb_release -da 2>/dev/null | grep -i codename | cut -f2
echo "deb https://riot.im/packages/debian/ codename main" > /etc/apt/sources.list.d/matrix-riot-im.list
wget https://riot.im/packages/debian/repo-key.asc && sudo apt-key add repo-key.asc && rm repo-key.asc
sudo apt update && sudo apt-get -y install riot-web && sudo ldconfig && sudo dpkg --configure -a && sudo apt-get clean
ln -s /opt/Riot/riot-web /usr/bin/
why sudo ldconfig && sudo dpkg --configure -a
? normally you wouldn't need to do it. ymmv.
you can get debian release name from /etc/os-release
without installing lsb-release
.
wheezy (oldstable LTS) doesn't have apt
. using apt-get
is more universal if you care about anything older than jessie or what ever ubuntu version still supported, but doesn't have apt
also.
about that symlink, see #2767
also, too much wall of text imho.
it would be easier if people can just download deb file and do sudo dpkg -i
and with first installation postinst script adds repo to sources and riot archive singining key to keyring. for example, this is how google-chrome does it.
Why lsb_release -da | grep -i codename
instead of lsb_release -sc
?
Why three commands for importing GPG key instead of just curl -L https://riot.im/packages/debian/repo-key.asc | sudo apt-key add -
?
another way:
sudo apt-key adv --keyserver pool.sks-keyservers.net --recv E019645248E8F4A1
but can we trust keyservers or CA which issued cert for riot.im? hehe.
If --recv-keys is going to be recommended, the full fingerprint should possibly be used.
Alternatively --fetch-keys now that you mentioned adv
I'm glad that anyone responded. Certainly those results can be achieved in many ways and great if you found shorter ones. Those software trimming and clean up commands are to ensure all works properly. If there is everything fine then those commands do nothing harmful. Former experience have shown that sometimes there occur some errors whether former software update have somehow not finished or any other unsolved issue in package management. Here is the shorter version:
cat /etc/os-release
echo "deb https://riot.im/packages/debian/ codename main" > /etc/apt/sources.list.d/matrix-riot-im.list
curl -L https://riot.im/packages/debian/repo-key.asc | sudo apt-key add -
sudo apt-get update && sudo apt-get -y install riot-web && sudo ldconfig && sudo dpkg --configure -a && sudo apt-get clean
ln -s /opt/Riot/riot-web /usr/bin/
@edmundlaugasson thanks for this. we're about to relaunch the website, and will incorporate this.
the website relaunch is delayed, so i've just linked to the instructions in this comment thread for now. thanks!
Here is one-liner for quick install Riot on Debian/Ubuntu systems:
echo "deb https://riot.im/packages/debian/ $(lsb_release -s -c) main" | sudo tee /etc/apt/sources.list.d/matrix-riot-im.list; curl -L https://riot.im/packages/debian/repo-key.asc | sudo apt-key add -; sudo apt-get update; sudo apt-get -y install riot-web
There is also an open "Request for Package" bug in the Debian system to include riot-web in the main distribution repositories: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866502
Most helpful comment
Here is one-liner for quick install Riot on Debian/Ubuntu systems: