Report available package updates on Linux endpoints with optional automatic upgrade capability
This Automox Worklet™ scans Linux endpoints for available package updates and creates a detailed report. The Worklet identifies your package manager and queries for upgradeable packages, then formats the results into a structured CSV file stored at /var/log/amagent/available_package_updates.csv.
The report includes package names, new version numbers, and repository sources for each available update. This information also appears in the Automox Activity Log for centralized visibility. By default, the Worklet only reports updates without applying them, giving you full control over when upgrades occur.
You can optionally configure the Worklet to perform automatic upgrades by setting the complete_upgrade variable to 1, which triggers apt upgrade or yum update after generating the report.
Maintaining visibility into pending updates across your Linux infrastructure helps you plan maintenance windows and prioritize critical security patches. Without centralized reporting, administrators must connect to individual endpoints to check update status, creating blind spots in patch management.
This Worklet provides a consistent view of update availability across endpoints running different Linux distributions. The CSV output enables integration with other monitoring tools and reporting systems. You can schedule the Worklet to run regularly and generate update inventories without disrupting production systems.
The optional upgrade capability allows you to use the same Worklet for both reporting and patching scenarios, controlled by a single configuration variable.
Evaluation phase: The Worklet detects the package manager by checking for yum or apt-get commands. It then runs apt list --upgradable (for Debian/Ubuntu) or yum check-update (for RHEL/CentOS) to identify available updates. If any packages require updates, the endpoint is flagged for remediation.
Remediation phase: The Worklet queries for upgradeable packages and formats the output into a CSV file at /var/log/amagent/available_package_updates.csv with columns for Package, New-Version, and Repository. If complete_upgrade is set to 1, the Worklet executes apt upgrade -y or yum update -y to apply all available updates.
Linux endpoint with apt (Debian/Ubuntu) or yum (RHEL/CentOS/Fedora) package manager
Write access to /var/log/amagent/ directory for CSV output
Root or sudo privileges
Set complete_upgrade=1 in the remediation script to enable automatic updates (optional)
After successful remediation, a CSV file exists at /var/log/amagent/available_package_updates.csv containing all packages with available updates. You can verify successful execution by checking the CSV file at /var/log/amagent/available_package_updates.csv. The Automox Activity Log displays the same information for centralized visibility.
If you enabled automatic upgrades, the endpoint reflects the updated package versions and the Activity Log shows the upgrade results. You can verify the changes by running the package manager's upgrade check command again, which should show fewer or no available updates.
Run this Worklet on a pilot Linux endpoint and review evaluation output for report available package updates.
Confirm Automox activity logs show successful completion and exit code 0.
Verify endpoint state using checks aligned to evaluation script logic, such as function, return, elif.
Validate remediation effects from script operations such as function, return, elif, then rerun evaluation for compliance.


By submitting this form you agree to our Master Services Agreement and Privacy Policy.
Already have an account? Log in
Consider Worklets your easy button
A Worklet is an automation script, written in Bash or PowerShell, designed for seamless execution on endpoints – at scale – within the Automox platform. Worklet automation scripts perform configuration, remediation, and the installation or removal of applications and settings across Windows, macOS, and Linux.

AUTOMOX + WORKLETS™
Uncover new possibilities with simple, powerful automation.
By submitting this form you agree to our Master Services Agreement and Privacy Policy