5.5. 取消活跃同步任务
大多数环境会按照计划的基础同步存储库。您可能会遇到需要取消活跃同步任务的情况。
先决条件
- 存在现有的软件仓库。
- 有活跃的同步任务。
流程
进入 Red Hat Update Infrastructure Management Tool 主页:
rhui-manager
[root@rhua ~]# rhui-managerCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
按
s键,以选择 同步状态和调度。 -
在 Synchronization Status 屏幕中,按
ca键选择 cancel active sync tasks。 为要取消的任务或任务输入值:
Select one or more repositories for which you want to cancel their active tasks. - 1: Red Hat Enterprise Linux 8 for x86_64 - AppStream from RHUI (Debug RPMs) (8.2) Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands:
Select one or more repositories for which you want to cancel their active tasks. - 1: Red Hat Enterprise Linux 8 for x86_64 - AppStream from RHUI (Debug RPMs) (8.2) Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands:Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
按
c键确认您的选择。 按
y取消同步任务或任务:The active tasks will be canceled for the following repositories: Red Hat Enterprise Linux 8 for x86_64 - AppStream from RHUI (Debug RPMs) (8.2) Proceed? (y/n)
The active tasks will be canceled for the following repositories: Red Hat Enterprise Linux 8 for x86_64 - AppStream from RHUI (Debug RPMs) (8.2) Proceed? (y/n)Copy to Clipboard Copied! Toggle word wrap Toggle overflow
验证
如果您取消活跃同步任务,则会显示类似的消息:
Canceling active task for repo Red Hat Enterprise Linux 8 for x86_64 - AppStream from RHUI (Debug RPMs) (8.2) ... ... done
Canceling active task for repo Red Hat Enterprise Linux 8 for x86_64 - AppStream from RHUI (Debug RPMs) (8.2) ... ... doneCopy to Clipboard Copied! Toggle word wrap Toggle overflow