yum install apache tomcat code example Example: install tomcat on centos 7 sudo yum install tomcat-webapps tomcat-admin-webapps