> For the complete documentation index, see [llms.txt](https://docs.linuxcontrolcenter.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.linuxcontrolcenter.com.br/en/host-actions/package-hold.md).

# 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)
