How to clean the yum cache and redownload the packages ?

Solution Verified - Updated -

Issue

We interrupted an RPM download (Ctrl+C) while yum was downloading updates and now the file is impossible to download:

Downloading Packages:
https://rh-sam.mydomain.com:8088/content/dist/rhel/server/6/6Server/x86_64/os/Packages/webkitgtk-1.2.6-5.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 18 - "transfer closed with 1640964 bytes remaining to read"
Trying other mirror.

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

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