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, the official Web site of Apache, or from a Red Hat mirror site. Follow these steps to install Apache from an RPM file:

  1. Download the RPM file from the site.
  2. 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:

  1. Stop the older version of Apache that is currently running.
    #/etc/rc.d/init.d/httpd stop
  2. 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.

Post By Editor (2,827 Posts)

Website: →