Install Linux Packages for Your Application

To make your application work, install additional packages in a Java SE, PHP, Node.js or Java EE application container. The packages install at runtime from the Oracle Linux 7 YUM repository.

  1. Create the linux-packages.txt text file in a text editor.
  2. Add one of the available installation options on a new line in the file. The following table describes the install options:
    Option Description Format Example

    package_install

    Install an individual package; it is equivalent to the “yum install -y pkg-name” Linux command.

    package_install:package_name

    package_install:lynx-2.8.6-27.el6.x86_64

    group_install

    Install a set of related packages in the specified group, it is equivalent to the “yum -y groupinstall group_name” Linux command.

    group_install:group_name

    group_install:x11

  3. Repeat Step 2 as needed.
  4. Save and close the file.
  5. Add the file to the root of the compressed file that you use to package your application. See Packaging Your Application.
  6. Deploy your application. See Creating the Deployment-Ready Archive.
  7. In the recent application logs, search for "Summary of Package Installation" and review if the packages installed successfully. See Exploring the Application Administration Page in Using Oracle Application Container Cloud Service.

Example 2-2 linux-packages.txt

package_install:make-3.82-23.el7.x86_64
package_install:gcc-4.8.5-4.el7.x86_64
package_install:lynx-2.8.6-27.el6.x86_64
group_install:x11