Install and verify Linux packages

 

+

Search Tips   |   Advanced Search

 

Overview

This procedure shows how to...

This example uses Red Hat Enterprise Linux (RHEL) on a PowerPC 64-bit hardware platform and assumes that RHEL requires both 32-bit and 64-bit versions of package...

 

Procedure

  1. Query the OS to determine if the packages are already installed.

    rpm -qa | grep compat-libstdc++-33-3.2.3-

    In this example, the OS did not find any matching packages so a blank line is displayed.

    You can also search without the grep argument to see an explicit message about the file:

    rpm -q compat-libstdc++-33-3.2.3-

    The OS returns the following message:

    package compat-libstdc++-33-3.2.3- is not installed

  2. Find all related packages on the OS media to get the fully qualified locations.

    This example assumes that the OS media is a compact disc mounted at /media/cdrom. Your CD-ROM device might be at a different location, such as /media/cdrecorder, for example.

    find /media/cdrom -name compat-libstdc++-33-3.2.3-*

    In this example, the OS finds two matching package names. One package is the 32-bit version and the other is the 64-bit version.

    /media/cdrom/RedHat/RPMS/compat-libstdc++-33-3.2.3-47.3.ppc.rpm
    /media/cdrom/RedHat/RPMS/compat-libstdc++-33-3.2.3-47.3.ppc64.rpm

  3. Install the first missing package:

    rpm -ivh /media/cdrom/RedHat/RPMS/compat-libstdc++-33-3.2.3-47.3.ppc.rpm

  4. Install the second missing package:

    rpm -ivh /media/cdrom/RedHat/RPMS/compat-libstdc++-33-3.2.3-47.3.ppc64.rpm


Alternate method

Prepare Linux systems for installation

 

Related Reference


Preparing Linux systems for installation