如何检查 Fedora 中是否安装了某个软件包?
假设我已经安装了curl ca-certificates gnupg2 lldb python3-minimal gcc libc6-dev,我想检查if其中是否有任何未安装。
curl ca-certificates gnupg2 lldb python3-minimal gcc libc6-dev
if
到目前为止我唯一能想到的就是调用dnf list installed并手动比较输出。
dnf list installed
fedora dnf
dnf ×1
fedora ×1