---
name: "cdist-type__apt_mark"
section: "7"
platform: "linux"
package: "cdist"
version: "7.0.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cdist-type__apt_mark"
---

# cdist-type\_\_apt\_mark(7)

set package state as 'hold' or 'unhold'

## NAME

cdist-type\_\_apt\_mark - set package state as 'hold' or 'unhold'

## DESCRIPTION

See [apt-mark(8)](/apt-mark/8.md) for details.

## REQUIRED PARAMETERS

- **state**

  Either "hold" or "unhold".

## OPTIONAL PARAMETERS

- **name**

  If supplied, use the name and not the object id as the package name.

## EXAMPLES

```
# hold package
__apt_mark quagga --state hold
# unhold package
__apt_mark quagga --state unhold
```

## AUTHORS

Ander Punnar \<*cdist--@--kvlt.ee*\>

## COPYING

Copyright (C) 2016 Ander Punnar. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

## COPYRIGHT

ungleich GmbH 2021
