How do I delete old packages in local repository server?

Solution Verified - Updated -

Issue

A local repository server downloads newest rpm package by reposync -n command.
Many packages duplicate in some versions in a directory after more than once the "reposync -n" command executes.
How do I delete the old packages?

Environment

Red Hat Enterprise Linux Server

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In