Debian/Ubuntu一键清理:

 apt-get -y purge bind9-* xinetd samba-* nscd-* portmap sendmail-* sasl2-bin && apt-get -y purge lynx memtester unixodbc odbcinst-* tcpdump ttf-* && apt-get -y autoremove && apt-get clean

Centos一键清理:

yum -y install yum-utils && rm -rf /var/cache/yum && rm -rf /var/tmp/yum-* && package-cleanup --quiet --leaves --exclude-bin && package-cleanup --quiet --leaves --exclude-bin | xargs yum remove -y && yum clean all 
Last modification:November 30, 2023
If you think my article is useful to you, please feel free to appreciate