Uninstallation
Prerequisites
- No tasks are running.
- The remote server is running properly.
Procedure
- Use an SSH tool to remotely log in to the OS CLI.
The tool in WebUI mode can be uninstalled by the root user only. The tool in CLI mode can be uninstalled by common users and the root user.
- Copy the scan reports to be retained from the following directory (replace /opt/DevKit with the actual tool installation directory):
- WebUI mode: /opt/DevKit/workspace/user/tools/report/ (user indicates the user name, and tools indicates the tool name, for example, /opt/DevKit/workspace/devadmin/porting/report)
- CLI mode: In the path to the Kunpeng DevKit terminal tool, a report directory is generated to store analysis reports.
- Run the following command to uninstall the Kunpeng DevKit (replace /opt/DevKit with the actual tool installation directory):
1bash /opt/DevKit/tools/uninstall.shThe following information is displayed (WebUI mode for example):
You will remove devkit from your operating system, do you want to continue [y/N]? y get devkit config The system uses yum to manage packages. Delete sudo tools Delete sudo tools success Delete /opt/DevKit/logs/sys_perf file success Delete /opt/DevKit/logs/components_log file success Delete /opt/DevKit/tools/python_venv_aituner file success File /opt/DevKit/config/agent_space/aituner not exists, continue Delete devkit install path Delete devkit install path success Starting uninstalling DevKit for Java Stopping Service DevKit for Java if it's running. unregister Service DevKit for Java. Removed symlink /etc/systemd/system/multi-user.target.wants/java_perf.service. start removing files under DevKit for Java's home folder WARN: none file under DevKit Home /opt/DevKit/devkitplugins is found for DevKit for Java start removing java_perf.service files under /home/root/java_perf The uninstallation is completed. Thanks for using DevKit for Java during these times! Hope see you again! delete web ssl service certificates success no crontab for devkit devkit:x:1124:1124::/home/devkit:/sbin/nologin Execute uninstall success.
- If you type y and press Enter when "A task is running. Are you sure you want to uninstall DevKit?(y/n)" is displayed, the task in progress will be stopped.
- The uninstallation will completely clear the tool installation history.
Parent topic: Installing the DevKit