| 列出 | dnf history list |
|---|---|
| 明细 | dnf history info <ID> |
| 回滚 | dnf history undo <ID> / rollback <ID> |
回滚一次误装
回滚一次误装
dnf history list | head
dnf history info 25
dnf history undo 25 -y回滚只处理包状态,不恢复被新版本改写的配置文件;业务配置需另行备份还原。
每次安装/升级/卸载都是可查的事务:dnf history 列出、info 看明细、undo/rollback 回滚,是误操作后的优先处理手段。
| 列出 | dnf history list |
|---|---|
| 明细 | dnf history info <ID> |
| 回滚 | dnf history undo <ID> / rollback <ID> |
dnf history list | head
dnf history info 25
dnf history undo 25 -y