完全恢复 CentOS 7 的第一次安装(出厂重置)

Anw*_* AR 11 ssh centos vps

我在 CentOS VPS 上运行 cpanel。但现在我需要从我的服务器上卸载 cpanel 并尝试卸载它。但据专家称,这样做非常困难,因为 cpanel/WHM 对操作系统核心进行了巨大的更改。

所以现在我只想重置 CentOS(就像恢复出厂设置一样)并想知道是否可以这样做?

注意:我只有 SSH 访问权限

小智 19

如果一切都是通过 yum 包管理器安装的,您可以撤消以前的命令:

# Get all yum commands previously run
yum history list all

# Get the details of the command
yum history info [entry number]

# Undo each command top-down
yum history undo [entry number]
Run Code Online (Sandbox Code Playgroud)

请注意不要撤消初始系统安装!