Yum error - package is a duplicate with

Yum error - package is a duplicate with error comes while updating packages with RHEL server using yum update command.

Also follow Kernel panic not syncing vfs unable to mount root fs on unknown-block  and RHNS CA file: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT for yum update related errors. 

Yum error - package is a duplicate with error : 5 Easy Steps


Step 1: Install yum utils
# yum install yum-utils

Step 2: Cleaning up unfinished transaction journals
# yum-complete-transaction --cleanup-only
Loaded plugins: product-id, subscription-manager
Cleaning up unfinished transaction journals
Cleaning up 2019-07-29.17:54.05

Step 3: Identify older versions to remove filtering even and odd lines later
# package-cleanup --dupes | sort -u > dupes.out

Step 4: Uninstall list from this sorted file this way
# cat dupes.out | grep -v 'Loaded plugins:' | sort -u | awk 'NR % 2 == 1' > uninstall.in

Step 5: Remove from rpm database the old versions
# for f in `cat uninstall.in`; do rpm -e --nodeps -f --justdb $f; done

# yum list all


Also follow Kernel panic not syncing vfs unable to mount root fs on unknown-block  and RHNS CA file: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT for yum update related errors.

Comments

Popular posts from this blog

How to install glibc 2.14 on RHEL 6/ RHEL 7/ CentOS 7

Export and Import users/groups and OU in AD Server 2008 using LDIFDE command.

How to Set Up and Configure latest yum repository on CentOS