2. Installing Ingres : Installing Ingres for Linux : Installing Ingres for Linux at the Command Line : How You Upgrade Using RPM
 
Share this page                  
How You Upgrade Using RPM
The process for safely upgrading any Ingres release using RPM is as follows.
To upgrade Ingres RPMs
1. Make sure the Ingres instance you want to upgrade is completely shut down and that you have taken a backup, as described in the Upgrade Guide.
Note:  Files that you have customized will be lost during the upgrade. Copy your customized files to a safe place. For more information, see the Upgrade Guide.
2. Issue the following command to see the list of Ingres RPM packages installed for the instance to be upgraded:
rpm -q --whatrequires ingres
Note:  If you are upgrading an instance that was installed using RPMs that were renamed to embed an instance ID, then use "ingresXX” instead of the core package name.
Note:  All packages must be upgraded at once. Any attempt to perform an upgrade on a single or smaller group of packages will fail.
3. Log in as root and CD to the directory containing the RPM to be used to perform the upgrade. Make sure variable II_CONFIG is not set.
4. Run rpm -Uvh to install the new RPM packages over the existing instance.
If the instance was originally installed using --prefix to change II_SYSTEM from the default, then this parameter must also be used for the upgrade.
For default instance location:
rpm -Uvh --nopreun --nopostun \
complete list of RPM files to be installed (rpm/ingres...rpm ...)
For any other instance location:
rpm -ivh --nopreun --nopostun --prefix <II_SYSTEM> \
complete list of RPM files to be installed (rpm/ingres...rpm ...)
5. Run the service script to configure and start the instance:
/sbin/service ingresXX start
where XX is the instance ID.