Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Offer curl -L | bash method for linux install ? #1074

Open
nicogodet opened this issue Oct 20, 2022 · 4 comments
Open

Offer curl -L | bash method for linux install ? #1074

nicogodet opened this issue Oct 20, 2022 · 4 comments

Comments

@nicogodet
Copy link
Member

nicogodet commented Oct 20, 2022

Description

I open this issue to discuss about a shell script to install QGIS on Linux distros in 1 command line.

Most of users, just want to install QGIS without reading to much documentation. The current procedure (at least for Ubuntu and Debian) requires to read and pay attention to the repository link and Suites written in qgis.sources.

Offering a curl -L https://qgis.org/install.sh | bash solution would make life easier for users.

image

Ref : https://github.com/qgis/QGIS-Website/issues/1030

Pros:

  • 1 command line install -- Easy
  • More readable documentation

Cons:

  • If users does not read the script, we can do pretty much anything we want in it (A note should be added to warn user to read the script before and note blindly execute the commande line).

Related issues :

@AndKe
Copy link

AndKe commented Oct 20, 2022

This would be nice.

@kannes
Copy link
Contributor

kannes commented Oct 21, 2022

If users does not read the script, we can do pretty much anything we want in it (A note should be added to warn user to read the script before and note blindly execute the commande line).

That is an important reminder but the trust in the QGIS project is already kind of implied by the users adding a repository (which could theoretically be run by malicious actors) and running the main application itself of course which is also theoretically capable of doing anything. There has been a lot of criticism of the "curl $randomscript | sh" installers but they are widely used and are useful especially for cases like QGIS' custom repositories.


Minor note: It should be plain POSIX shell support (~"| sh") of course but that's probably obvious to the person who might end up implementing such a script.

@landryb
Copy link

landryb commented Jan 5, 2023

There has been a lot of criticism of the "curl $randomscript | sh" installers

seconded, please at least add a big disclaimer below saying something along the lines of you shouldnt blindly run commands copypasted from the internet without knowing what they will do..

@lbartoletti
Copy link
Member

Sorry @nicogodet but "no thanks" for me, I really don't like the curl $script | sh.

It's already simple on most distributions with this universal command:

<your package manager> <install|add|verb> qgis(-ltr)

pkg install qgis
dnf install qgis
pacman -S install qgis
brew install qgis
...

It's an ubuntu problem, not qgis one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants