You can update the Chrome and Edge packages using one of the following methods:
- Method 1: Using OpsRamp Agent Remote Script (Recommended)
 - Method 2: Manual Execution
 
Method 1: Using OpsRamp Agent Remote Script
- Navigate to Automation > Scripts v2.
 - Create a Script Category (Global, Partner-specific, or Client-specific).
 - Click the Add to create a new script. Provide the following script details:
- Name: Example- Chrome and Edge Package Upgrade
 - Description: Patch script to update Chrome and Edge
 - Execution Time: 60 seconds
 - Platform: Linux
 
 - Paste this following script in the script content:
#!/bin/bash set -ex # Define working directory WORKDIR="/tmp" PATCH_ARCHIVE="chrome_edge.tar.gz" PATCH_FOLDER="chrome_edge" # Move to working directory cd "$WORKDIR" # Download the patch archive wget -q "https://opsramp-gateway.s3.us-east-2.amazonaws.com/patching/ubuntu22/vg-1900-UB22-Patch/$PATCH_ARCHIVE" mkdir -p "$PATCH_FOLDER" # Extract the archive tar -xzf "$PATCH_ARCHIVE" -C "$PATCH_FOLDER" # Navigate into the extracted folder cd "$PATCH_FOLDER" # Run the build script if [ -f build.sh ]; then sh build.sh else echo "Error: build.sh not found in $PATCH_FOLDER" exit 1 fi # Check chrome and edge versions google-chrome --version microsoft-edge --version - Save the script
 - Schedule the script execution:
- Select the script
 - Click 
Schedule(right panel) - Fill in details:
- Schedule Name
 - Target Resource(s)
 - Schedule Type: 
One-time 
 - Click Save.
 
 - Run the Scheduled Script from the Scheduled Script section.
 - Review Execution Logs from the right-side panel for the status.
 
Method 2: Manual Execution
Use this if Agent based execution isn’t possible.
Prerequisites
- Access to the gateway system
 - Appropriate user credentials
 
Steps for Manual Execution:
- Login to Gateway using: 
ruser - Take root access by using the following command and enter password:
 
sudo su -3. Run the following command to change directory:cd /tmp/4. Download the Patch File:- Using patch link: https://opsramp-gateway.s3.us-east-2.amazonaws.com/patching/ubuntu22/vg-1900-UB22-Patch/chrome_edge.tar.gz
 - Or using command:
wget https://opsramp-gateway.s3.us-east-2.amazonaws.com/patching/ubuntu22/vg-1900-UB22-Patch/chrome_edge.tar.gz 
- Untar the downloaded file using the following command:
 
tar -xvzf chrome_edge.tar.gz6. Run the script using the following commands:sh build.sh7. Run the following command to Verify the installed package versions:dpkg -l | grep chrome
dpkg -l | grep edge
google-chrome --version
microsoft-edge --version
chromedriver --version
msedgedriver --versionExpected Versions:
| Package | Expected Version | 
|---|---|
| Google Chrome | 138.0.7204.168-1 | 
| Microsoft Edge | 138.0.3351.95-1 | 
| Chrome Driver | 138.0.7204.168 | 
| Edge Driver | 138.0.3351.95 |