Using the Redhat package management tool
To list available packages and narrow selection, at the shell prompt, use
Panel |
---|
yum list available |
To install a package, use
Panel |
---|
yum install PACKAGE |
To list installed packages and narrow selection, use
Panel |
---|
yum list installed |
To list an installed package's files, use
Code Block |
---|
rpm -ql PACKAGE yum list installed | fgrep tomcat rpm -ql tomcat5 yum list installed | fgrep java rpm -ql java-1.5.0-sun |
Using the Redhat service management tool
The system services are operated by scripts in
Panel |
---|
/etc/init.d/ |
To display helpful usage instruction, use
Panel |
---|
cd /etc/init.d |
Note: The service(8) command manages the system services.
To check the status of a service
Panel |
---|
service SERVICE status |
To stop a service
Panel |
---|
service SERVICE stop |
To start a service
Panel |
---|
service SERVICE start |
The chkconfig(8) command manages system services at init boot time.
To have a service start at init boot time
Panel |
---|
chkconfig SERVICE on |