Uninstalling Zend Server on DEB

The following procedures describes how to uninstall Zend Server on a DEB operating system.

Uninstalling and deleting  Zend Server can be performed by using the following programs:

  • Automatic script
  • 'aptitude'
  • 'apt-get'

Important!

The following resources are not removed during the uninstallation procedures describes below:
1. Files under Zend Directory (/usr/local/zend): DB files (located at var/db) and Log files (located at var/logs).
2. User 'zend' (not a regular user, login disabled).
3. Web server (Apache, nginx).

Note:

To perform this action you must have root privileges.

Automatically Uninstalling Zend Server

The following instructions describe how to delete or uninstall Zend Server using an automated script that includes all remove commands.

 

 

Instructions on how to complete a procedure

To automatically uninstall Zend Server run:

/usr/local/zend/bin/uninstall.sh

Tip:

Add --automatic to this command to run the script uninterrupted and without prompting verification messages.

Manually Uninstalling Zend Server using 'aptitude'

The following instructions describe how to delete or uninstall using 'aptitude'.

Note:

'aptitude' is not installed by default on the Ubuntu operating system version 10.10 (Maverick Meerkat) onwards. You can either choose to install 'aptitude' on your Ubuntu or uninstall using 'apt-get'.

 

 

Instructions on how to complete a procedure

To uninstall Zend Server (leaving the configuration files in place) run:

 # aptitude remove '~izend'

To delete Zend Server from the system with no traces left run:

# aptitude purge '~nzend'

 

Manually Uninstalling Zend Server using 'apt-get'

The following instructions describe how to delete or uninstall using 'apt-get'.

 

 

Instructions on how to complete a procedure

To uninstall Zend Server (leaving the configuration files in place) run:

 # apt-get remove `dpkg -l | grep zend | grep ^ii | awk '{print $2}'`

To delete Zend Server from the system with no traces left run:

# apt-get purge `dpkg -l | grep zend | awk '{print $2}'`