# Package Hold

## Version

* Linux Control Center = 2.10.X or higher

## Requirements

* Hosts must be previously configured in the LCC database

## Overview

* This guide provides information and step-by-step instructions to configure **Package Hold** in the Linux Control Center.

## Objective

* Mark packages with the **"Hold"** flag to ensure they remain at their current version.

{% hint style="info" %}
If there are packages marked as *Hold* on the host before importing it into LCC, it will be necessary to mark them again as "Hold" in the LCC console after import.

The *Hold* configuration follows the relationship of **Host X Package**, preventing the package from being modified regardless of which LCC package management action is performed.
{% endhint %}

## Package Hold on Hosts

1. To add packages to the Hold list of a host, go to the **Hosts** screen.

   ![](/files/6XdLOW7N0KCbfk2zpmlF)
2. Click on the row of the desired host and open the **General** tab.

   ![](/files/ojYDBOV7TNLAoUy9qNgg)
3. Select the packages in the **Packages available to hold** table and move them to the right table using the arrow button.

   ![](/files/hDSJ66Wk51HTLPSDCTnf)
4. Click **Save**.

   ![](/files/zQe4unSDEUgoPmOV7rst)
5. Done! From now on, any package management action performed on this host will respect the packages configured as **"Hold"**, meaning those packages will not be modified.

## Package Hold on Host Groups

1. To apply the Hold configuration to a host group, go to the **Host Groups** screen.

   ![](/files/62ZRWqAA5psmv3DgRgfd)
2. Click **Manual**.

   ![](/files/pKzFfTGxFtqdHuRTwA8L)
3. Click on the desired group.

   ![](/files/q6MKdrQUPOZK2WMuYWJk)
4. Scroll down to the **Packages** table, select the packages from the left table, and move them to the **Packages in the group** table on the right using the arrow button.

   ![](/files/QoqvwPSbXZqBEbG8QNOG)
5. Click **Save**.

   ![](/files/TPc5cGa3VK4PqqGGAMYX)
6. Done! From now on, any package management action performed on this host group will respect the packages configured as **"Hold"**, meaning those packages will not be modified.

## Package Hold Persist

* This setting prevents the package from being modified even if the command is executed directly on the terminal of the hosts managed by LCC.

1. Click **Config**.

   ![](/files/aHuAaRFD1CG7pYiB5BOT)
2. Click **Parameters**.

   ![](/files/2a9QPrxz8EAHxoteOOPw)
3. Click **Ansible**.

   ![](/files/NhULAA7L7qnnnEHgGeyr)
4. Check the option **Package Hold Persist** and click **Save**.

   ![](/files/3fg4ARO0tMaP16F6YEwl)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.linuxcontrolcenter.com.br/en/host-actions/package-hold.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
