Need to update Amazon Linux Servers using Yum

Hi All,

I had update Amazon Linux servers using the available fixlet in console but still pending patches showing in servers when we check using Yum command .Now i want to use Yum command to update the server using the BigFix fixlet.I had tried below sh command but got failed.
// ActionScript to run yum update
wait bash -c “yum -y update”

Kindly suggest any command that update server using Yum.

Does that command work when you execute it in a normal shell?

You may need to specify the full paths to /bin/bash, or to /usr/bin/yum

The reason for that would be that the BESClient is not launching bash as a login shell; it won’t execute the .profile or .bash_login or .bashrc files, and may not have the $PATH set to the value you get from a login shell.

Hi Jason,
Glad you respond to my query. In server we are running just ‘yum -y update’ and it’s working .
I will try using given path /bin/bash, or to /usr/bin/yum from Fixlet

Got Solution form PMR team below action script need to execute.
// Enter your action script here
wait /bin/sh -c “yum -y update”

If anyone want to run any command in Linux servers , just need to put the command in " " and use the same action scritpt

1 Like