Adding RPMs

This section describes how to add RPMs to an existing Exalogic VM image. It contains the following topics:

Adding RPMs Using modifyjeos

Note:

modifyjeos does not work for LVM-based templates. For such templates, use the manual method described in Adding RPMs Manually.

To add RPMs using modifyjeos, complete the following steps:

  1. Add the names of the new RPMs in a list file, such as addrpms.lst. In this file, you should list each new RPM in a separate line.
  2. Ensure that all of the new RPMs are in a single directory, such as rpms.
  3. Run the following command to add the new RPMs:

    # modifyjeos -f System.img -a <path_to_addrpms.lst> -m <path_to_rpms> -nogpg

    In this command, <path_to_addrpms.lst> is the path to the location of the addrpms.lst file, and <path_to_rpms> is the path to the directory that contains the RPMs. The -nogpg option eliminates signature check on the RPMs.

Adding RPMs Manually

To add an RPM manually, complete the following steps:

  1. Ensure that the VM is not running.
  2. Mount the System.img file, as described in Mounting System.img.
  3. Run the following command to install the RPM on the mounted image:

    # chroot <path_to_mounted_System.img> /bin/bash -c 'rpm -i <path_to_rpm>'

    In this command, <path_to_mounted_System.img> is the path to the mount location, and <path_to_rpm> is the path to the RPM file. Ensure the RPM file is in the mount directory of System.img.

  4. Unmount the System.img file, as described in Unmounting System.img.