top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

YUM: duplicate packages on connection reset

+2 votes
115 views

I have a small problem with some packages : I was doing an update over ssh and my connection was interrupted .. now i have a lots of duplicates and if i try to remove them, yum tries to uninstall all system (447 packages 1.4 gb)

Any idea how can I clean this mess? It would be pretty bad if the machine needs to be re-installed only because the connection went bad during the process...

posted Dec 15, 2013 by Sanketi Garg

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Running 'yum-complete-transaction' will usually fix things up. If you don't have it you should be able to 'yum install yum-utils' without affecting the old incomplete transaction.

answer Dec 15, 2013 by Kumar Mitrasen
Similar Questions
+1 vote

During yum upgrade a couple days ago, I saw this:

Cleanup : kernel-3.10.0-229.20.1.el7.x86_64  35/64
warning: file /lib/modules/3.10.0-229.20.1.el7.x86_64/modules.softdep: 
remove failed: No such file or directory
warning: file /lib/modules/3.10.0-229.20.1.el7.x86_64/modules.devname: 
remove failed: No such file or directory

Should I be concerned about this? What could have caused it?

0 votes

I have a machine that recently had some file system corruption. fsck was able repair the file system but I am getting the following error when I try to do yum update:

[Errno 21] Is a directory: '/var/lib/yum/yumdb/e/2f883c08e3b596b66fcc19c6b4d73b11c9aaa43e-e2fsprogs-1.41.12-14.el6_4.2-x86_64/checksum_type'

In searching Google, some suggested renaming the yumdb but that just results in a traceback when I run yum.

There are some files in lost+found but I am not sure what the above file should look like and inode numbers are not useful to me.

Anyone have an idea how to fix this without reloading the machine?

+1 vote

Is it possible to exclude all packages except one or two in a repo file? The man page for yum.conf didn't give me any hints. I tried unsuccessfully adding this line:

exclude=!firefox*,!xulrunner*

Is there a way to set up this repo so that when I run "yum upgrade" it will only check the firefox and xulrunner packages from the remi repo?

+2 votes

If I add priority=1 to [updates] in CentOS-Base.repo
when I run "sudo yum update" I get the warning 66 packages excluded due to repository priority protections

This does not seem to have any adverse effect, but what exactly does it mean?

+1 vote

Is there an 'after the fact' way to find what yum groups are installed, including ones that were added with 'yum groupinstall' instead of the initial anaconda install?

...