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.
Loading...
Related Quiz
- What is the primary function of kernel modules in Linux?
- Which daemon is responsible for network interface configuration and automatic switching between networks?
- When setting up SSH for the first time, the server-side cryptographic keys are stored in the /etc/ssh/________ directory.
- The ___________ distribution is known for its advanced package management system called "pacman."
- The _________ Linux distribution is enterprise-focused and is backed by Red Hat.