yum does not consistently stop when CTRL + C is pressed

Solution Verified - Updated -

Issue

  • Yum does not have the same behavior as other commands when pressing Ctrl-C to stop the shell command:

    # yum update
    # yum install <package1> <package2>
    
  • Pressing Ctrl-C is SUPPOSED to skip to the next mirror. Pressing it twice in quick succession should drop you from the run. But this, sometimes, doesn't happen or it doesn't happen immediately: it's waiting before exit to the shell.

Environment

  • Red Hat Enterprise Linux
  • yum
  • Python

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content