Chapter 3. Installing Red Hat Application Stack
6
• Option 2. To install from RPMs on Disk:
Follow the instructions in
Section 2.2.2, “Using
yum
/ DVD”
to mount the DVD and set up the
local RHN channel (steps 1-3). Then as root run:
yum update
Followed by:
yum groupinstall stacks
After the installation is complete, remove the file you added in
/etc/yum.repos.d/
(or set
enabled=0 in that file). Failure to do this will result in
yum
exiting with an error whenever it is run
again without mounting the Red Hat Application Stack V.2.2 DVD.
Note
You may need to install the following packages to satisfy dependencies before
executing the above command, if they are not already installed:
•
apr-devel
•
apr-util-devel
•
libc-client
•
mx
•
pcre-devel
Note
You can also install specific components of the stack via the
yum groupinstall
directive specified in Section 3. In addition to "stacks", the following groups are
defined:
j2ee
- Installs jbossas, jboss-seam, mod_jk and database jdbc drivers
lamp
- Installs httpd, mysql, php and all components related to mysql
lapp
- Installs httpd, postgresql, php and all components related to postgresql
docs
- Installs documentation for various components
When using the
groupinstall
directive, you can specify multiple groups at the
same time (even if they share packages).
Analogous to
groupinstall
, you can use the
"groupremove"
directive to
remove all the packages in a group. The groupremove directive will only remove
packages in the group; not the dependencies that the package install may have
brought in.
4. Restore your database:
• For PostgreSQL: