Removing Duplicate RPM’s

Following is a simple shell scripts which helps the administrators to find and remove the duplicate packages from the rpm database, leaving the *oldest* version intact. After a successful run, the user should then issue a “yum update” command to install the latest package versions.

 

 

The script may take some time to remove the duplicate packages based on your load.