移除分層套件

透過復原還原所有變更

如果需要將整個映像檔還原至乾淨或已知的狀態,可以復原至前一個版本。

$ sudo rpm-ostree rollback --reboot

移除指定的分層套件

rpm-ostree 工具也提供 uninstall 選項,可移除個別的分層套件:

$ rpm-ostree uninstall --help
Usage:
  rpm-ostree uninstall [OPTION…] PACKAGE [PACKAGE...]

Remove overlayed additional packages

Help Options:
  -h, --help              Show help options

Application Options:
  --install=PKG           Overlay additional package
  --all                   Remove all overlayed additional packages
  --os=OSNAME             Operate on provided OSNAME
  -r, --reboot            Initiate a reboot after operation is complete
  -n, --dry-run           Exit after printing the transaction
  --allow-inactive        Allow inactive package requests
  --idempotent            Do nothing if package already (un)installed
  --unchanged-exit-77     If no overlays were changed, exit 77
  --sysroot=SYSROOT       Use system root SYSROOT (default: /)
  --peer                  Force a peer-to-peer connection instead of using the system message bus
  --version               Print version information and exit

和安裝或復原一樣,必須重新啟動系統才能啟用新的映像檔。