Update To 7.4

Home » CentOS » Update To 7.4
CentOS 8 Comments

I was doing an update to 7.4 and somewhere in middle the machine died.

If I drop back to a previous kernel the machine is alive. So how do I say
“forget the previous yum update” and start all over and do it again.

Booting into the new kernel I get a kernel fault. So going back one level on teh boot screen solves that – I just need to start the update again. How is that?

Thanks,

Jerry

8 thoughts on - Update To 7.4

  • I think I’d try….

        yum remove kernel-(broken version)
        yum update


    john r pierce, recycling bits in santa cruz

  • You’ll want to look into ‘yum history’ with the ‘info’ and ‘undo’
    subcommands. Not sure how well it works for larger updates but I’ve had success on broken packages.

  • Since you are mid-transaction, you should at least try:

    yum-complete-transaction

    This is the safest route.

    If that fails, you might be able to use yum history to back out the last transaction, but that probably would fail because you’d have to download and install the packages in the previous release, which might not be available anymore.

    You can also use:

    package-cleanup —cleandupes

    … to clean out any duplicate packages that might be both installed.

    This has happened to me more often than I’d like to admit. Usually because I didn’t start the yum update in a tmux shell and one of the updates caused the SSH connection to fail.


    Jonathan Billings

  • I think I’d try….

    yum remove kernel-(broken version)
    yum update

    ———————————————————–

  • Uninstall a specific kernel, e.g.:

    yum remove kernel-3.10.0-693.2.2.el7.x86_64

    I’ve seen no major problems so far, having updated a fair few machines.

    jh

  • Thanks all for the thoughts. I have no issues with 7.4 – this was clearly
    “freek” accident while updating, either internet connection closed on me or something. I brought the unit back here, I tried a few of the suggestions –
    wasn’t really working for me. So I just re-installed 7.4 and all was fine.

    Thanks again.

    Jerry

  • —–Original Message—–From: John Hodrien
    Reply-to: CentOS mailing list
    To: CentOS mailing list
    Subject: Re: [CentOS] update to 7.4
    Date: Wed, 20 Sep 2017 15:59:25 +0100 (BST)

    Uninstall a specific kernel, e.g.:

    yum remove kernel-3.10.0-693.2.2.el7.x86_64

    I’ve seen no major problems so far, having updated a fair few machines.

    jh

  • Thanks all for the thoughts. I have no issues with 7.4 – this was clearly
    “freek” accident while updating, either internet connection closed on me or something. I brought the unit back here, I tried a few of the suggestions –
    wasn’t really working for me. So I just re-installed 7.4 and all was fine.

    Thanks again.

    Jerry

    —————————————————————–