It has always bugged me that dnf search has no indication in the output whether a package is already installed. In fact, this feature request already exists for at least 10 years. Let’s do it manually!
dnf search