---
title: "Run a package action across every host in a fleet"
method: POST
path: "/fleets/{id}/packages"
tags: ["Fleets"]
---

# Run a package action across every host in a fleet

`POST /fleets/{id}/packages`

Auto-detects each host's package manager (apt/dnf/yum/pacman) and runs install/remove/upgrade-all, elevating with the host's stored sudo password. Requires manage-level access per host.

## Path parameters

- `id` integer, required

## Request body

- object
  - `action` 'install' | 'remove' | 'upgrade-all'
  - `package` string

## Response `200`

Per-host package action results.

## Other responses

- `404` — Fleet not found.

---

[API](https://skmtc.dev/termix/apis/termix-api.md) · [All operations](https://skmtc.dev/termix/apis/termix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/termix/termix-api/revisions/f4ef343eff1b/schema)
