Uninstalling the eCosPro Developer's Kit on Linux

Due to the numerous methods employed by different Linux distributions for installing and uninstalling packages, the main method for uninstalling eCosPro is through the menu item. This executes an uninstaller created during installation. Each eCosPro component installed will also have an associated uninstaller located at the top level of each component directory, illustrated in Figure 9-4. Each uninstaller will uninstall individual components or releases, with primary installers giving you the option of also uninstalling the associated components (see Figure 9-5 for an example).

Figure 9-4. Linux List of Uninstallers

test@ubuntu:~$ cd /opt/ecospro
test@ubuntu:/opt/ecospro$ ls */*-uninstall
eclipse-1.2.1.1/eclipse-1.2.1.1-uninstall
ecos-3.1.2/ecos-3.1.2-uninstall
ecoshosttools-3.1/ecoshosttools-3.1-uninstall
gnutools-arm-eabi-4.4.5a/gnutools-arm-eabi-4.4.5a-uninstall
test@ubuntu:/opt/ecospro$

In addition, eCosPro components are also registered with the package manager preferred by the host machine's Linux distribution (if the requisite tools are installed on the host machine). For example, on Debian and Ubuntu distributions, eCosPro components will be registered using dpkg, while rpm will be used for other distributions such as RHEL, Fedora or OpenSuSE. Consequently it is also possible to use the package manager's normal process for removing packages in order to uninstall eCosPro components. For example:

  • dpkg -r ecospro-zoom-l138

  • rpm -e ecospro-zoom-l138-3.1.2-2

An uninstall invoked by dpkg or rpm will run silently, with no graphical output indicating progress of the uninstallation. In addition, no dependent components will be uninstalled. For example, if you uninstall ecospro-zoom-l138-3.1.2-2 and this is the only primary eCosPro component installed, the other dependent components such as ecospro-hosttools-3.1-0, ecospro-arm-eabi-gnutools-4.4.5a-5 and ecospro-eclipse-1.2.1.1-1 will not be uninstalled.

Figure 9-5. Uninstall eCosPro

Note: The uninstallers will attempt to run in a graphical mode if possible, unless invoked by dpkg or rpm. If you wish to uninstall using console mode, pass the parameters "-mode console" to the uninstaller executable. If you wish to uninstall silently, without confirmation or progress, pass the parameters "-mode Silent" to the uninstaller.

2017-02-09
Documentation license for this page: eCosPro License