Carbonio CE Uninstallation
This procedure is intended for a complete uninstallation of Carbonio CE on an Ubuntu 20.04 LTS Server Edition and is suitable in case you want to reinstall Carbonio CE on a clean system. If you want to keep configuration files or logs, remember to copy them to a different directory before starting this procedure.
Console access is required for successful completion, so make sure to log in as
root user–or as a user with administrative provileges–then
execute the following commands in the given order.
At the end of the procedure, when all steps have been completed, no Carbonio CE trace will be present on the system.
Step #1: stop service
# su - zextras -c "zmcontrol stop"
Step #2: remove packages
# apt purge "carbonio*"
# dnf purge "carbonio*"
After this step you may get a warning that while removing carbonio packages, some directories are not empty so they have not been removed.
Step #3: disable system service
# systemctl disable carbonio
Step #4: remove unused packages
# apt autoremove
# dnf autoremove
Step #5: remove crontab entry
# crontab -u zextras -r
Step #6: remove users
# userdel -rf zextras # userdel postfix
The first command above may fail if some processes started
zextras users are still running. You can safely
terminate them by issuing this command:
killall -u zextras
and then repeat the above commands.
The next steps will remove all files that do not belong
carbonio-* packages: customised configuration files, log
files, and system files. If you think you will need them, for
example for diagnostics or troubleshooting, copy them away before
Step #7: remove dangling configuration files
# rm -rf /opt/zextras/ # rm -rf /opt/carbonio/
The second command is needed only in case some external service is installed.
Step #8: remove log and system files
# rm -rf /var/log/carbonio* # rm /etc/logrotate.d/carbonio # rm /etc/init.d/carbonio # rm /run/systemd/generator.late/carbonio.service
Step #9: remove repository
# rm /var/lib/apt/lists/repo.zextras.io*