Install and Uninstall

About details of installing TDenine, please refer to .

  • Uninstall apt-get
  • Uninstall Deb
  • Uninstall RPM
  • Uninstall tar.gz
  • Windows uninstall

Apt-get package of TDengine can be uninstalled as below:

Apt-get package of taosTools can be uninstalled as below:

  1. Reading package lists... Done
  2. Building dependency tree
  3. Reading state information... Done
  4. The following packages will be REMOVED:
  5. 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
  6. After this operation, 68.3 MB disk space will be freed.
  7. (Reading database ... 147973 files and directories currently installed.)
  8. Removing taostools (2.1.2) ...

Deb package of TDengine can be uninstalled as below:

  1. $ sudo dpkg -r tdengine
  2. (Reading database ... 137504 files and directories currently installed.)
  3. Removing tdengine (3.0.0.0) ...
  4. TDengine is removed successfully!

Deb package of taosTools can be uninstalled as below:

RPM package of TDengine can be uninstalled as below:

  1. $ sudo rpm -e tdengine
  1. sudo rpm -e taostools
  2. taosToole is removed successfully!

tar.gz package of TDengine can be uninstalled as below:

tar.gz package of taosTools can be uninstalled as below:

  1. $ rmtaostools
  2. Start to uninstall taos tools ...
  3. taos tools is uninstalled successfully!

Run C:\TDengine\unins000.exe to uninstall TDengine on a Windows system.

info
  • We strongly recommend not to use multiple kinds of installation packages on a single host TDengine. The packages may affect each other and cause errors.

  • After deb package is installed, if the installation directory is removed manually, uninstall or reinstall will not work. This issue can be resolved by using the command below which cleans up TDengine package information.

    1. $ sudo rm -f /var/lib/dpkg/info/tdengine*

You can then reinstall if needed.

You can then reinstall if needed.

Uninstalling and Modifying Files

  • When TDengine is uninstalled, the configuration /etc/taos/taos.cfg, data directory /var/lib/taos, log directory /var/log/taos are kept. They can be deleted manually with caution, because data can’t be recovered. Please follow data integrity, security, backup or relevant SOPs before deleting any data.

  • When reinstalling TDengine, if the default configuration file /etc/taos/taos.cfg exists, it will be kept and the configuration file in the installation package will be renamed to taos.cfg.orig and stored at /usr/local/taos/cfg to be used as configuration sample. Otherwise the configuration file in the installation package will be installed to /etc/taos/taos.cfg and used.

There are two aspects in upgrade operation: upgrade installation package and upgrade a running server.

To upgrade a package, follow the steps mentioned previously to first uninstall the old version then install the new version.

  • Stop inserting data
  • Make sure all data is persisted to disk
  • Stop the cluster of TDengine
  • Uninstall old version and install new version
  • Start the cluster of TDengine
  • Execute simple queries, such as the ones executed prior to installing the new package, to make sure there is no data loss
  • Run some simple data insertion statements to make sure the cluster works well
  • Restore business services
Install and Uninstall - 图2warning

TDengine doesn’t guarantee any lower version is compatible with the data generated by a higher version, so it’s never recommended to downgrade the version.