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

[SOLVED] YUM: can not find RHNS CA file ERROR: can not find RHNS CA file: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT

Setting an Operating System Release During Registration

YUM Update ERROR: 28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds' Trying other mirror