You're troubleshooting a software installation issue on a CentOS machine. You suspect a required package might be missing. Which command helps you check if a specific package is installed?

  • rpm -q
  • dpkg -l
  • yum info
  • apt-cache policy
On CentOS, you can use the 'rpm -q' command to check if a specific package is installed. This command queries the RPM database to determine if the package is installed on the system.
Add your answer
Loading...

Leave a comment

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