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

Software Updates: show apt metadata, including clickable links to upstream, apt-mark info #20256

Open
mcint opened this issue Apr 2, 2024 · 3 comments

Comments

@mcint
Copy link

mcint commented Apr 2, 2024

Page:

Feature

In Software Updates, browsing & searching packages, and able to view size, dependencies metadata, urls for project and package, etc.

Process

I may try to implement this, but want feedback: suggestions, concerns, and critique.

I want to support workflows of finding and installing packages, by making supporting information easily available, at least what's already easily available in apt & dpkg stores. Perhaps something like aptitude could also be a high-end target in terms of feature set and density of interface.

I would start with, and prioritize a browsing-oriented workflow, supporting search, and viewing package metadata, rendered nicely.

It seems like this should live as a separable module, able to run standalone.

@jelly
Copy link
Member

jelly commented Apr 3, 2024

The current software page uses PackageKit to fetch the information about software updates. It also supports installing and searching for packages so would be preferred over calling apt or dpkg as both are Debian/Ubuntu specific while PackageKit is distro-agnostic. (GNOME Software / KDE's Discover also use PackageKit).

@mcint
Copy link
Author

mcint commented Apr 24, 2024

I see some frontends include a description alongside the name. I'm really interested in this level, a touch more information than package name slugs, and especially interested in links to the upstream project, via the package management kit's metadata. Is that possible?

I can look into how pk-update-viewer fetches descriptions.

PackageKit presention slide - pk-update-viewer gui - with package descriptions

(from https://web.archive.org/web/20121221153300/http://www.hughsie.com/public/introduction-to-packagekit.pdf)

I don't find an overview of the data model or API to suit my curiosity on PackageKit's FreeDesktop homepage.

@jelly
Copy link
Member

jelly commented Apr 24, 2024

Sure PackageKit should be able to provide that:

[root@fedora-39-127-0-0-2-2201 ~]# pkcon  search cockpit
Searching by details          [=========================]
Querying                      [=========================]
Loading cache                 [=========================]
Finished                      [=========================]
Available       anaconda-webui-39.32.6-2.fc39.x86_64 (fedora)                   Cockpit based user interface for the Anaconda installer
Installed       cockpit-315.dev56+gc43b3289d.dirty-1.fc39.x86_64 (installed)    Web Console for Linux servers

We use the DBus API in Cockpit and the documentation is available but a bit sparse in how to use it.

Or see our code pkg/packagekit/updates.jsx and try to console log in interesting parts. But afaik we don't have search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants