Skip to content
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

Merged
merged 9 commits into from
Dec 10, 2023
Merged

list os packages and register notification #2492

merged 9 commits into from
Dec 10, 2023

Conversation

foxriver76
Copy link
Collaborator

@foxriver76 foxriver76 commented Oct 16, 2023

This PR implements:

@foxriver76 foxriver76 requested a review from Apollon77 October 18, 2023 06:25
@foxriver76 foxriver76 marked this pull request as ready for review October 19, 2023 06:17
private readonly COMMANDS = {
listUpgradeable: {
apt: 'list --upgradeable',
'apt-get': 'list --upgradeable',
Copy link
Collaborator Author

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

Copy link
Collaborator

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"

Copy link
Collaborator Author

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.

Copy link
Collaborator

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 ...

Copy link
Collaborator

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).

Copy link
Collaborator

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.

@foxriver76 foxriver76 merged commit 9aef255 into master Dec 10, 2023
15 checks passed
@foxriver76 foxriver76 deleted the issue-2488 branch December 10, 2023 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Execute "apt list --upgradable" on Linux systems and inform on updates
3 participants