Individual IS security policies may require the removal of compilers are removed from the production systems. If this policy applies to your NAM Probe, the compiler packages can be removed only after the system and NAM Probe software is installed and updated .
gcc package is removed, the NAM Probe setup tools cannot recompile the device drivers after a Linux kernel upgrade. The result is that, after each kernel upgrade, the
gcc package must be re-installed to enable the device drivers to be recompiled.
If the NAM Probe software was installed using the kickstart file provided by Compuware, the
gcc compiler will be present and can be removed using the
yum package manager. For example:
yum remove gcc-c++
yum remove gcc
If the NAM Probe software was not installed using the kickstart file, or if independent package management actions were performed in addition to the documented software update procedures, using
yum for package removal is not recommended. This is because
yum may remove the specified packages as well as the packages that are declared as “dependent”, thus removing packages that are necessary for correct NAM Probe operation.
In these situations, we recommend that you remove unwanted packages selectively using the
rpm command. Use only this command for package removal if you are not certain that you fully understand the package dependency structure and packages have been managed outside of the kickstart installation script.
-qa options of the
rpm command to determine the exact name of the package to be removed, and then use the
-e option to remove the package. If dependency errors are reported, use the
--nodeps option to force package removal regardless of dependencies. For example:
[root@NAM Probe ~]# rpm -qa | grep gcc gcc-java-4.1.2-48.el5 libgcc-4.1.2-48.el5 gcc-4.1.2-48.el5 gcc-c++-4.1.2-48.el5 [root@NAM Probe ~]#rpm -q gcc gcc-4.1.2-48.el5 [root@NAM Probe ~]#rpm -e gcc error: Failed dependencies: gcc = 4.1.2-48.el5 is needed by (installed) gcc-c++-4.1.2-48.el5.i386 gcc = 4.1.2-48.el5 is needed by (installed) gcc-java-4.1.2-48.el5.i386 [root@NAM Probe ~]#rpm -e gcc gcc-c++ gcc-java error: Failed dependencies: gcc = 4.1.2-48.el5 is needed by (installed) java-4.1.2-gcj-compat-devel-188.8.131.52-40jpp.115.i386 [root@NAM Probe ~]#rpm -e --nodeps gcc gcc-c++ gcc-java [root@NAM Probe ~]#
For further information on package management, refer to the operating system documentation.
To install compilers, use the command:
yum install gcc
If your system is not configured to use remote
rpm repositories, you have to use the packages from the Red Hat installation CD:
auto /dev/cdrom /mnt