Redhat Linux Servers Patching

Vijay Kumar 2,036 Reputation points
2020-12-01T07:13:27.283+00:00

Hi Team,

How to patch Azure Redhat linux VMs (Redhat 7.6/7.7/8.2)

Due to critically we are planning to patch linux VM one by one.

I having very good experience on Windows Servers But not Linux

Please provide the Steps:

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
40,235 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sharon Zhao-MSFT 25,106 Reputation points Microsoft Vendor
    2020-12-01T08:51:21.827+00:00

    @Vijay Kumar ,

    As we are mainly responsible for Teams for Linux, your question is only related to Linux, which is not in our scope. I would remove office-teams-linux-itpro tag and add as not-supported tag.

    Moreover, you can post a new case in Linux forum. There are many qualified respondents. Hope you get better response.

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Marisa Dean 1 Reputation point
    2021-02-01T17:07:35.403+00:00

    If purchased from the marketplace RedHat images will already have a patch repository enabled, but you may need to allow this through your NSG or firewall. It is within microsofts default accepted ranges however, on port 443.

    To try update

    Login to the server and run

    sudo yum clean all
    sudo yum makecache
    sudo yum repolist all
    

    Check at least base-os is enabled, shown in green.

    Then run

    sudo yum update
    

    This will list all patches available, press y to confirm
    Please wait for all patches, ssh may disconnect do not panic, wait 15mins and try to connect again
    Once you can login again, run top or ps -ef to confirm all processes have finished

    Then reboot the server with

    sudo reboot now
    

    After reboot perform your checks

    Sudo yum history will show the previous patches installed and if you need to remove you can use

    sudo yum undo
    

    Note upgrading this way this will upgrade your minor version and kernel but not major version, eg 7.6 will go to 7.9 but not 8.x

    If you only want security patches you can use

    sudo yum update-minimal --security
    

    If you want to upgrade from 7.x to 8.x use

    sudo yum upgrade
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.