You can handle RPM installation with a single command. However, you should follow a few guidelines within the context of RPMs. Before you begin downloading the RPM, ensure the following:
- The RPM is for the latest version and is specific to the operating system that you are using.
- The RPM is built with the precompiled options that will be most beneficial to you.
You can obtain RPMs from http://www.rpmfind.net, the official Web site of Apache, or from a Red Hat mirror site. Follow these steps to install Apache from an RPM file:
- Download the RPM file from the site.
- Type the following command while logged on as the root user.
#rpm -ivh apache-1.3.xx-y.i386.rpm
This command will install the version of RPM that you specify. However, you may already have an older version of Apache running. In this case, you might encounter an error while executing the command. Follow these steps to upgrade the installation:
- Stop the older version of Apache that is currently running.
- Use the rpm command to upgrade to the new version.
#rpm -Uvh apache-1.3.xx-y.i386.rpm
|Note||If you still encounter errors, it is probably because other packages depend on the older version of Apache. You will need to remove these packages or applications before proceeding with the installation. You can use the command, rpm -e application_name to remove these packages or applications. Another option is to use the –nodeps option while uninstalling Apache. Using this option will uninstall Apache regardless of the dependencies. You can also use the –force option to forcibly uninstall the older version of Apache. You will have to install the dependent packages again if you choose to uninstall each of them before you proceed with the installation. Therefore, you might prefer to use the –nodeps or the –force options.|