Friday, March 17, 2017

How to check if a package is installed on Linux

On RPM based system
on RPM based systems like Red Hat, Cent OS etc, we can use rpm query command like below :
rpm -qa | grep telnet
or 
rpm -q telnet

If system is configured with YUM then it can list all installed packages for you and you can grep out your desired package from it.
yum list installed | grep telnet

On APT based systems 
on APT based systems like Debian, Ubuntu etc, dpkg command can be used to verify if package is installed
dpkg -l | grep telnet

6 comments:

  1. I am very glad to read your informative blog...thanks a lot for your valuable sharing
    you can also visit here linux training in india

    ReplyDelete
  2. nice course. thanks for sharing this post this post harried me a lot.
    Linux Training institute in Noida

    ReplyDelete