Is there a way I can find out what rpm version I have installed (based on the running OS release)?
How can I do the equivalent of dnf provides
in Clear?
I merged the two topics you created together since they are pretty similar.
You can search what bundle contains a file, similar to dnf provides
with a swupd search
. In particular these options are useful:
Options:
-l, --library Search paths where libraries are located for a match
-b, --binary Search paths where binaries are located for a match
-s, --scope=[query type] 'b' or 'o' for first hit per (b)undle, or one hit total across the (o)s
For determining specific package versions, you can download and parse this file, replacing 29620 with the desired version: https://download.clearlinux.org/releases/29620/clear/source/package-sources
You can also add a local repo for querying using dnf, repllacing 29620 with the desired version like this:
dnf config-manager --add-repo https://download.clearlinux.org/releases/29620/clear/x86_64/os/
dnf repoquery
You can then of course just use dnf repoquery --whatprovides
directly.
It would be great if swupd
client could offer this functionality.
@pceiley the following shell commands shall work
sudo dnf config-manager --add-repo https://download.clearlinux.org/releases/"$(cat /usr/share/clear/version)"/clear/x86_64/os/ --releasever "$(cat /usr/share/clear/version)"
sudo dnf repoquery
@otavio.pontes can you help us on this
This functionality has been in planning for a very long time. We intend to make a large SQL database with various search interfaces that can be queried for lots of very detailed information, such as licenses, commit IDs and origin of the files. This would be something swupd
could then tap into (through a search interface) and people could develop alternative search functions themselves (using the search API we design).
We hope to … well… get to finally implementing it
Meanwhile … I just do
# swupd search --init
# swupd search --display-files > display-files.txt 2>&1
and search display-files.txt
with vim
.
How to find which package provides a specific *.so file in Clear Linux?
swupd search-file XXX.so