Individual IS security policies may require the removal of compilers are removed from the production systems. If this policy applies to your AMD, the compiler packages can be removed only after the system and AMD software is installed and updated.
If the AMD 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 AMD 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 AMD 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@vantageamd ~]# 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@vantageamd ~]#rpm -q gcc gcc-4.1.2-48.el5 [root@vantageamd ~]#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@vantageamd ~]#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-22.214.171.124-40jpp.115.i386 [root@vantageamd ~]#rpm -e --nodeps gcc gcc-c++ gcc-java [root@vantageamd ~]#
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