Article 5CBDK [SOLVED] apt should offer to install non-existing app

[SOLVED] apt should offer to install non-existing app

by
arkturuz
from LinuxQuestions.org on (#5CBDK)
Hi there!

When I enter command not yet installed on my Linux system, shell responds with something like (this is Ubuntu 18.04):

PHP Code:$ octave

Command 'octave' not found, but can be installed with:

sudo snap install octave # version 5.2.0, or
sudo apt install octave

See 'snap info octave' for additional versions.
And then, I have to enter one of those commands into the terminal to install the application.

This behaviour gets pretty annoying when you work with more than one machine, and forget to install everything everywhere, and from usability point of view, and from my point of view it would be much desirable is the system responded with something like this:

PHP Code:$ octave

Command 'octave' not found, but can be installed with:

1) sudo snap install octave # version 5.2.0, or
2) sudo apt install octave

See 'snap info octave' for additional versions.

Enter command number (1, 2) to install the app, or <Enter> to cancel.
After that, I would just enter command number to install this or press enter to skip it.

Is this thing possible? I could write a script for this behaviour but I don't know where to put it to trigger this behaviour of the apt system or whatever this is that gives the response from above.

Any pointers welcome, and thanx!latest?d=yIl2AUoC8zA latest?i=pXcEB0kTq50:CFM0J01oH7Q:F7zBnMy latest?i=pXcEB0kTq50:CFM0J01oH7Q:V_sGLiP latest?d=qj6IDK7rITs latest?i=pXcEB0kTq50:CFM0J01oH7Q:gIN9vFwpXcEB0kTq50
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments