5.1.1. Capablities:
In RPM terminology, each package provides capabilities. A capability is simply a text string that the package claims it provides. In most cases, a capability names a file or a package. But the capability can be any arbitrary text string.
Other packages can then depend on certain capabilities. (You can use this concept in building your own packages.) Each package lists the capabilities it requires as well as the capabilities it provides.
→ en français, un paquet fournit plusieurs fichiers (des librairies par exemples, etc…), ils sont dans le paquet, ce sont les "capabilities"
J'ai téléchargé par exemple, le paquet "korganizer-22.04.2-lp153.196.1.x86_64.rpm" , peu importe où
On y trouve notamment dedans:
thierry@toto-PC:~/Téléchargements/korganizer-22.04.2-lp153.196.1.x86_64/usr> ll lib64/
insgesamt 1736
lrwxrwxrwx 1 thierry users 28 12. Jun 18:43 libkorganizer_core.so.5 -> libkorganizer_core.so.5.20.2
-rwxr-xr-x 1 thierry users 180432 12. Jun 18:42 libkorganizer_core.so.5.20.2
lrwxrwxrwx 1 thierry users 34 12. Jun 18:43 libkorganizer_interfaces.so.5 -> libkorganizer_interfaces.so.5.20.2
-rwxr-xr-x 1 thierry users 66976 12. Jun 18:42 libkorganizer_interfaces.so.5.20.2
lrwxrwxrwx 1 thierry users 30 12. Jun 18:43 libkorganizerprivate.so.5 -> libkorganizerprivate.so.5.20.2
-rwxr-xr-x 1 thierry users 1515952 12. Jun 18:43 libkorganizerprivate.so.5.20.2
drwxr-xr-x 3 thierry users 4096 5. Aug 16:47 qt5
ou encore:
thierry@toto-PC:~/Téléchargements/korganizer-22.04.2-lp153.196.1.x86_64/usr/share/metainfo> ll
insgesamt 48
-rw-r--r-- 1 thierry users 46310 7. Jun 05:53 org.kde.korganizer.appdata.xml
Il faut fouiller…
Voici maintenant des commandes pour lister ces "Capabilities":
pour zypper
thierry@toto-PC:~> LANG=C zypper info --provides korganizer
Repository 'Update repository of openSUSE Backports' is out-of-date. You can run 'zypper refresh' as root to update it.
Loading repository data...
Reading installed packages...
Information for package korganizer:
-----------------------------------
Repository : Haupt-Repository
Name : korganizer
Version : 21.12.3-bp154.1.18
Arch : x86_64
Vendor : openSUSE
Installed Size : 4.8 MiB
Installed : Yes (automatically)
Status : up-to-date
Source package : korganizer-21.12.3-bp154.1.18.src
Upstream URL : https://apps.kde.org/korganizer
Summary : Personal Organizer
Description :
KOrganizer is a calendar application by KDE.
Provides : [16]
application()
metainfo()
mimehandler(text/calendar)
application(korganizer-import.desktop)
application(korganizer-view.desktop)
application(org.kde.korganizer.desktop)
libkorganizer_core.so.5()(64bit)
libkorganizer_interfaces.so.5()(64bit)
libkorganizerprivate.so.5()(64bit)
metainfo(org.kde.korganizer.appdata.xml)
mimehandler(application/x-vnd.akonadi.calendar.event)
mimehandler(application/x-vnd.akonadi.calendar.journal)
mimehandler(application/x-vnd.akonadi.calendar.todo)
korganizer = 21.12.3-bp154.1.18
korganizer5 = 21.12.3
korganizer(x86-64) = 21.12.3-bp154.1.18
Tu peux aussi le faire avec rpm:
thierry@toto-PC:~> rpm -q --provides korganizer
application()
application(korganizer-import.desktop)
application(korganizer-view.desktop)
application(org.kde.korganizer.desktop)
korganizer = 21.12.3-bp154.1.18
korganizer(x86-64) = 21.12.3-bp154.1.18
korganizer5 = 21.12.3
libkorganizer_core.so.5()(64bit)
libkorganizer_interfaces.so.5()(64bit)
libkorganizerprivate.so.5()(64bit)
metainfo()
metainfo(org.kde.korganizer.appdata.xml)
mimehandler(application/x-vnd.akonadi.calendar.event)
mimehandler(application/x-vnd.akonadi.calendar.journal)
mimehandler(application/x-vnd.akonadi.calendar.todo)
mimehandler(text/calendar)