Install a Linux package from an existing apt/dpkg repository on your endpoints
This Automox Worklet™ automates package installation on Debian, Ubuntu, and other apt/dpkg-based Linux distributions. The Worklet queries your configured package repositories and installs a single specified package to the endpoint.
The Worklet uses dpkg-query to check the current installation status of the target package. If the package is already installed, the Worklet reports success without making changes. If the package is absent, the Worklet executes apt-get to fetch and install it from your repositories.
Manual package installation on Linux endpoints creates deployment inconsistencies and consumes valuable IT time. When you need to install software across dozens or hundreds of Debian-based systems, logging into each endpoint individually or managing SSH scripts becomes unmanageable. Missing installations leave security gaps, and version mismatches between endpoints create support challenges.
Automox distributes the installation across your entire fleet with a single configuration. The Worklet reports success or failure for each endpoint, giving you complete visibility into deployment status. You can target specific endpoint groups or deploy organization-wide.
Evaluation phase: The Worklet checks whether the specified package is already installed using dpkg-query, which queries the local package database.
Remediation phase: If the package is missing, the Worklet runs apt-get install to fetch the package from your configured repositories and install it. The Worklet then reports the installation result.
Linux endpoints running Debian, Ubuntu, Raspbian, or other apt/dpkg-based distributions
Root or sudo privileges required for package installation
The target package must exist in your configured apt repositories
Network connectivity to reach package repositories during installation
Sufficient disk space for the package and its dependencies
After successful remediation, the specified package is installed and available on the endpoint with all required dependencies resolved and installed. The package and all required dependencies are ready for immediate use. You can verify installation by running dpkg -l | grep <package-name> to confirm the package version, or check the Automox Activity Log for the apt-get installation output showing all installed components.
If the package was already installed, the Worklet takes no action and reports success. If installation fails due to network issues, repository unavailability, or dependency conflicts, the Worklet reports the failure so you can troubleshoot on affected endpoints.
Run this Worklet on a pilot Linux endpoint and review evaluation output for custom apt dpkg repo install.
Confirm Automox activity logs show successful completion and exit code 0.
Verify endpoint state using checks aligned to evaluation script logic, such as exit.
Validate remediation effects from script operations such as exit, else, then rerun evaluation for compliance.
For technical validation, compare endpoint state to the Worklet evaluation logic and remediation flow for custom apt dpkg repo install. This supports repeatable software lifecycle workflows, faster change control review, and auditable compliance evidence.
Useful script references for this Worklet include evaluation operations such as exit and remediation operations such as exit, else. Use these indicators to verify that endpoint changes match intended policy outcomes.


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