How To Find If A Package Is Installed Or Not In Linux And Unix

3 Responses

  1. xircon says:

    which e.g.
    which nano

  2. Gregory Pittman says:

    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.

  3. Há Zé says:

    Dear SK, please take a look at the manual of which command! It finds an executable if the directory which contains it, is in the path of your current environment.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.