`dnf search` show if the package is installed or not in last column

,

Is it possible to display if the following packages are already installed or not:

$ dnf search qml
Last metadata expiration check: 0:15:52 ago on Tue 02 Jul 2024 17:01:11 CEST.
========================= Name & Summary Matched: qml ==========================
accounts-qml-module-doc.noarch : Documentation for accounts-qml-module
accounts-qml-module-qt5.x86_64 : Qt5 build of accounts-qml-module
accounts-qml-module-qt6.x86_64 : Qt6 build of accounts-qml-module
python3-doxyqml.noarch : Doxygen to document your QML classes
qmltermwidget.x86_64 : A port of QTermWidget to QML
qtav-qml-module.x86_64 : QtAV QML module
snapd-qt-qml.x86_64 : Library providing a Qt6 QML interface to snapd
vim-syntastic-qml.noarch : A syntax checker for qml programming language
============================== Name Matched: qml ===============================
mingw32-qt5-qmldevtools.x86_64 : Qt5 for Windows build environment
mingw32-qt5-qmldevtools-devel.x86_64 : Qt5 for Windows build environment
mingw64-qt5-qmldevtools.x86_64 : Qt5 for Windows build environment
mingw64-qt5-qmldevtools-devel.x86_64 : Qt5 for Windows build environment
qmlkonsole.x86_64 : Terminal app for Plasma Mobile
============================= Summary Matched: qml =============================
gsettings-qt.x86_64 : Qt/QML bindings for GSettings
gstreamer1-plugins-good-qt.x86_64 : GStreamer "good" plugins qt qml plugin
gstreamer1-plugins-good-qt6.x86_64 : GStreamer "good" plugins qt6 qml plugin
haruna.x86_64 : Open source video player built with Qt/QML and libmpv
kf5-qqc2-desktop-style.x86_64 : QtQuickControls2 style for consistency between QWidget and QML apps
kf6-qqc2-desktop-style.x86_64 : QtQuickControls2 style for consistency between QWidget and QML apps
libmpris-qt5.x86_64 : Qt and QML MPRIS interface and adaptor
mpvqt.x86_64 : QML wrapper for libmpv
qqc2-desktop-style.x86_64 : QtQuickControls2 style for consistency between QWidget and QML apps
qt5-qt3d.x86_64 : Qt5 - Qt3D QML bindings and C++ APIs
qt6-qt3d.x86_64 : Qt6 - Qt3D QML bindings and C++ APIs
qtav-players.x86_64 : QtAV/QML players
sddm.x86_64 : QML based desktop and login manager

Added dnf, f40

You have a choice of commands.

dnf list installed <package>
rpm -q <package>

FYI this is all documented in the man dnf and man rpm pages.

1 Like

I was hoping that dnf search to show that information, without having to manually type for each package in the search output.

The build date on an RPM is when it was built, not the date of any code that it was built from. In the case of your 10 year old project the build date will be recent as Fedora rebuilds packages for each release.

Usually we check for versions, not dates.
And dnf search is returning the version info to you.