Issue
Is there any way to get JavaScript to run apt-get install gimp
on the user's computer when on a link click so that, The user will know the software is being installed.
I've tried googling it.
If there is no way of doing this, please say as after a day, I will mark it as the answer.
Solution
Few answers above mention that if it exists, then it will be unsafe. But the fact is that there is an existing solution already for ubuntu and its safe too.
The mechanism is called apturl. see here:
https://help.ubuntu.com/community/AptURL
https://wiki.ubuntu.com/AptUrl
It is supported by firefox, konqueror atleast. It needs "apturl" package to be installed(which is installed by default ). When user click on apt-url link as shown in answer above by @atrepp , then the defult package launcher will start to install with asking for appropriate authorization(password), as if you would have clicked in "Ubuntu Software Center". Its completely safe as much as you would have installed via "Ubuntu Software Center" or "apt-get" directly.
And i am confident that no such solution exists for RHEL or SuSE.
Answered By - zaxebo1 Answer Checked By - Mary Flores (WPSolving Volunteer)