KnowledgeBase - How do I remove a package installation?
Article

How do I remove a package installation?

« Go Back
Products
Webtrends Legacy Products
Introduction
Webtrends CommerceTrends Reporting Server 3.x
Webtrends Enterprise Reporting Server 3.x

Introduction:
One common error when trying to uninstall the Reporting Server deals with package installations. Enterprise Reporting Server and CommerceTrends Reporting Server can both be installed as either a tar file, or a package. A tar file is just an archive that, when un-compressed and expanded, creates the proper files for the application. A package installation creates the same files, but additionally, it registers the application with the operating system. If the Reporting Server was installed as a package, then manually deleting the files will not completely uninstall the program. Much like applications in Windows, package installations must be removed using the package commands built in to the operating system; merely deleting the program files will cause error messages later. This document contains the commands to find out whether or not an existing installation is a package installation, and the correct way to remove a package install. First, to determine if Enterprise Reporting Server (wtrs) or CommerceTrends Reporting Server (wtct) is installed as a package enter the following:

For Solaris:
pkginfo | grep WT [for Enterprise Reporting Server]
pkginfo | grep WT [for CommerceTrends Reporting Server]
For Linux:
rpm -qa | grep wtrs [for Enterprise Reporting Server]
rpm -qa | grep wtct [for CommerceTrends Reporting Server]
If a package install has been found for Enterprise Reporting Server or CommerceTrends Reporting Server then the below information will explain how this install can be removed.

For Solaris:
[normal uninstall of a package installation] pkgrm package_name
Note: Enter in the actual name of the package instead of package_name.
[manual uninstall of a package installation] rm -rf /var/sadm/pkg/package_name
Note: The package directory can vary from one system to another.

For Linux:
[normal uninstall of an rpm installation] rpm -e rpm_name
Note: Enter the actual name of the rpm instead of rpm_name.
Note: The rpm name for CommerceTrends Reporting Server v3.5 is wtct-3.5-350.
[manual uninstall of an rpm installation] rpm -e --noscripts rpm_name
Note: This will remove the rpm from the database. Also, below are instructions how to manually uninstall the processes (the reporting server engine and the interface) if they were set to start automatically regardless of the installation type.

For Solaris:
[for Enterprise Reporting Server] rm /etc/init.d/wtrs rm /etc/init.d/rc3.d/S99wtrs
[for CommerceTrends Reporting Server] rm /etc/init.d/wtct rm /etc/init.d/rc3.d/S99wtct

On Linux:
[for Enterprise Reporting Server] rm /etc/rc.d/init.d/wtrs rm /etc/rc.d/rc3.d/S99wtrs rm /etc/rc.d/rc5.d/S99wtrs
[for CommerceTrends Reporting Server] rm /etc/rc.d/init.d/wtct rm /etc/rc.d/rc3.d/S99wtct rm /etc/rc.d/rc5.d/S99wtct
Next Steps
More Information
 
Was this article helpful?

Please tell us how we can make this article more useful.

Characters Remaining: 255