How can I check which services are installed on CentOS?
To view the services installed on a CentOS system, you can use the following command:
- Show a list of unit files with systemctl.
systemctl list-unit-files
- list all units in the systemctl
systemctl list-units
- Show dependencies with systemctl.
systemctl list-dependencies <service-name>
- list all installed packages
- web server
rpm -qa | grep httpd
With the above command, you can view all the installed services on a CentOS system along with their dependencies.