> 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.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-a262fa19677789ebc50a8a179d979f2c42cee928%2Fbotao_hosts.png?alt=media)
2. Click on the row of the desired host and open the **General** tab.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-f47b5611bf344cbd8052d017f2e00dade2e505d6%2Fguia_general.png?alt=media)
3. Select the packages in the **Packages available to hold** table and move them to the right table using the arrow button.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-35a7192ed227dbb3d9531f46521e22ca3df390d9%2Fpacotes_selecionados.png?alt=media)
4. Click **Save**.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-1d04989d8689e2e6903a9d5a7556d41ce62724b4%2Fbotao_save.png?alt=media)
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.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-ea99f939aa1d5955172532bf7e51ea8590a50df1%2Fhost_groups.png?alt=media)
2. Click **Manual**.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-c7b80084633f49d8c7bed9230d2b6128a09a7faf%2Fbotao_manual.png?alt=media)
3. Click on the desired group.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-20b6fa96bd6e7d6e0475c5ea529b8063452a54bc%2Ftela_com_grupo.png?alt=media)
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.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-669ea5447a40e7136cd95c26dd4226fb8e5e75d0%2Fpacotes_selecionados_grupo.png?alt=media)
5. Click **Save**.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-1cff60c085ee25ed7c8559e11d6f83d9e42f24e9%2Fbotao_save_grupo.png?alt=media)
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**.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-800e5f2e8c1268ec5dfc13cc7b16e4f533ad922c%2Fbotao_config.png?alt=media)
2. Click **Parameters**.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-825b81ca437236f43fec5d1d645eaf523e699658%2Fparameters.png?alt=media)
3. Click **Ansible**.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-c91fe5264fd4b80ad17885b648a85444a0ce05b9%2Fbotao_ansible.png?alt=media)
4. Check the option **Package Hold Persist** and click **Save**.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-70c2094d9a404205ff79efa6564c06d59bb28e7b%2Fbotao_hold_persist.png?alt=media)
