环境: Ubuntu 24.04.1 LTS
使用时的安装命令是
curl -sS https://installer.cloudpanel.io/ce/v2/install.sh -o install.sh; echo "2aefee646f988877a31198e0d84ed30e2ef7a454857b606608a1f0b8eb6ec6b6 install.sh" | sha256sum -c && sudo DB_ENGINE=MARIADB_10.11 bash install.sh
卸载主程序和相关附加软件包、依赖
sudo rm -rf /var/lib/dpkg/info/cloudpanel* && sudo apt remove cloudpanel -y && sudo apt purge cloudpanel -y && sudo apt autoremove -y
检查空间 df -h
,发现应该还是没删干净,检索关键字
经过 updatedb && locate -i cloudpanel
检查,还有些残留
清理残留
rm -rf /home/clp
rm -rf /usr/share/doc/cloudpanel
rm -rf /var/crash/cloudpanel*
rm -rf /etc/sudoers.d/cloudpanel /etc/mysql/ /etc/apt/trusted.gpg.d/cloudpanel-keyring.gpg /etc/apt/preferences.d/00packages.cloudpanel.io.pref
rm -rf /etc/apt/sources.list.d/percona-mysql.list /etc/apt/trusted.gpg.d/mariadb.gpg /etc/apt/sources.list.d/mariadb.list
pkill -f php-fpm nginx
apt -y remove --purge gnupg apt-transport-https debsums chrony redis-server postfix
dpkg --purge mariadb-common mariadb-client mysql-common php-common proftpd-core varnish nginx-common libnginx-mod-stream libnginx-mod-ngx-brotli libnginx-mod-mail libnginx-mod-http-xslt-filter libnginx-mod-http-upstream-fair libnginx-mod-http-subs-filter libnginx-mod-http-image-filter libnginx-mod-http-geoip libnginx-mod-http-dav-ext libnginx-mod-http-auth-pam redis-tools fail2ban
dpkg -l | grep 'rc php[78]' | awk '{print $2}' | xargs dpkg --purge
apt remove -y --purge mariadb-server percona-server-client-5.7 percona-server-server-5.7 percona-server-client percona-server-server mysql-client-8.0 mysql-server-8.0
apt autoclean -y && apt autoremove -y
多释放了 1.5 GiB,所有附带安装的软件包及其生成的配置文件被处理干净了,收工
https://github.com/cloudpanel-io/cloudpanel-ce/issues/185