-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
list os packages and register notification #2492
Conversation
- and wait until pack manager is ready
private readonly COMMANDS = { | ||
listUpgradeable: { | ||
apt: 'list --upgradeable', | ||
'apt-get': 'list --upgradeable', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to find the correct command for apt-get
list
is only available for apt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But why we need apt-get?
only I found is "apt-get --simulate upgrade"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not an expert, maybe all systems which have apt-get
also have the apt
cli? Not sure about this, then it would be save to remove apt-get
entirely. As @AlCalzone had some experience with the package manager, maybe he knows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also "Think" that both should be there ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this help?
https://askubuntu.com/questions/445384/what-is-the-difference-between-apt-and-apt-get/446484#446484
apt-get may be considered as lower-level and "back-end", and support other APT-based tools. apt is designed for end-users (human) and its output may be changed between versions.
Note from apt(8):
The
apt
command is meant to be pleasant for end users and does not need
to be backward compatible like apt-get(8).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://itsfoss.com/apt-vs-apt-get-difference/
the first stable version of apt was released in the year 2014, but people started noticing it in 2016 with the release of Ubuntu 16.04
So unless we want to support some really old systems, only using apt
should be okay I think.
This PR implements: