I use the below config file in the .ebextensions to preinstall the Google Chrome stable when deploying our Ruby application to AWS EB.
commands:
01-install:
command: rpm -q google-chrome-stable || yum install -y https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
It was working fine before, but it has failed since last night. I can see the Google Chrome has released a new version, I believe the new version isn’t compatible with our current system. I try to search the previous version, but could not find it. Can you please advise how to use the previous version?
Error:
[ec2-user@ip-10-0-0-54 ~]$ sudo yum install -y https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
google-chrome-stable_current_x86_64.rpm | 106 MB 00:00
Examining /var/tmp/yum-root-kUCaP6/google-chrome-stable_current_x86_64.rpm: google-chrome-stable-127.0.6533.72-1.x86_64
Marking /var/tmp/yum-root-kUCaP6/google-chrome-stable_current_x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:127.0.6533.72-1 will be installed
Error: Invalid version flag: or