Apply security updates offline on Red Hat Enterprise Linux release 8.7 (Ootpa) in Production environment

Kaushal Shriyan kaushalshriyan at gmail.com
Sun Sep 10 02:39:49 UTC 2023


On Sun, Sep 10, 2023 at 12:58 AM Matty Sarro <msarro at gmail.com> wrote:

> There is a plugin for yum called "downloadonly". I think 8 has it by
> default.
>
> You should be able to go on to a like system and run "yum update
> --downloadonly --downloaddir=/path/to/directory" which will download all of
> the packages into /path/to directory.
>
> Then you can copy the packages to the target system in a given directory.
> Then to install navigate to the directory and run "yum local install *.rpm"
> and it'll update.
>
> -Matty
>
> On Sat, Sep 9, 2023, 12:49 PM Kaushal Shriyan <kaushalshriyan at gmail.com>
> wrote:
>
>
Hi Matty,

Thanks for your response. I have run the below command. What I have
observed is that it is updating all the packages.

#yum update --downloadonly --downloaddir=/root/rhel8securityupdates

Output of above command -> https://termbin.com/tcqrh

Is there a way to update only the security patches as per the below command
output?

yum list-security --security
> yum -y update --security


Please guide me. Thanks in Advance.

Best Regards,

Kaushal


More information about the redhat-list mailing list