How to find if a package is installed or not in Linux and Unix


You may also like...

  • xircon

    which e.g.
    which nano

  • Gregory Pittman

    You can also use dnf/yum as in
    dnf list packagename
    or even
    dnf list package*
    What you get from these is a list of what’s installed and also what’s available in repositories. dnf allows a wildcard, and will also be case-insensitive in its search. Sometimes you don’t quite know what you’re looking for or the correct spelling.