-
Notifications
You must be signed in to change notification settings - Fork 86
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
API to get information about available updates #1242
Comments
This seems to have no parent now, therefore closing this. |
@jan-kolarik by parent do you mean osquery/osquery#5201 ? I edited the description to clarify that it is not the parent. Please reopen. |
@jan-kolarik thanks! ;) |
Sure, reopened. Do I understand correctly that this involves providing an API similar to what the check-upgrade command does? Essentially, it's a combination of several package queries. While there isn't currently a single helper method for this functionality, it could potentially be created. |
Yes, but
What is needed is.
(taken from my notes while trying to build update viewer https://gitlab.com/abitrolly/dnf-go-gui) |
So you want "dnf5 --cacheonly --assumeno upgrade" combined with "dnf5 check-upgrade" with additional details in a single API call. I don't think there will ever be something like that. It's to much specific use case. You can obtain list of packages to update and then query for the details of each package separately. Check "dnf5daemon-client upgrade" command. It uses D-Bus API and the output is similar what dnf5 tool prints. So there is a high change than many of the details are already obtainable through API. Of course not a single call. |
@ppisar that's why I want ERD diagram for the database to query it directly, |
@abitrolly May I ask you whether you need C++ or a Python code? |
@j-mracek it was Python, but then I switched to Go. |
Need API to get immediate info about updates. Without waiting for caches to refresh.
(for example for osquery/osquery#5201)
The text was updated successfully, but these errors were encountered: