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.
- # wget http://www.gnutoolbox.com/download/linux/scripts/rpmdup_remover.sh
# chmod 755 rpmdup_remover.sh
# ./rpmdup_remover.sh
The script may take some time to remove the duplicate packages based on your load.