Thursday, December 4, 2008

How can use YUM with DVD-RHEL5

To install using yum / DVD:

  1. Update your installation and install the JVM as described above.

  2. Mount the Red Hat Application Stack V.2.0 DVD.

  3. Create a new file in /etc/yum.repos.d/ with the following contents to update directly from the RPMs on the disk:

    [stacksv2] name=Red Hat App Stack baseurl=file:///path/to/mounted/DVD/Stacks/ enabled=1 
  4. Install JBoss Application Server:

    • For the Application Server (which includes an embedded Tomcat), run:

      yum install jbossas 
  5. After the installation is complete, remove the file you added in /etc/yum.repos.d/ in Step 3 (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.0 DVD.