---
name: "dpkg-hold"
section: "8"
platform: "linux"
package: "dlocate"
version: "1.17"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dpkg-hold/8"
---

# dpkg-hold(8)

mark packages as held to prevent installation

## NAME

dpkg-hold - mark packages as held to prevent installation

## SYNOPSIS

**dpkg-hold** \[*package*...\]

## WARNING

This command is **deprecated**, and will be removed during in Debian forky, use `"dpkg --set-selections"` or `"apt-mark"` instead.

## DESCRIPTION

**dpkg-hold** marks package(s) to be held.

It achieves this by running `"dpkg --set-selections"` and piping in the package name(s) followed by **hold**.

NOTE: This program does not install, remove, purge any package. It ONLY sets the status of the package. Any actual removal or purging is done the next time **dselect**, **apt-get**, **aptitude**, etc are run.

## SEE ALSO

[**dpkg**(1)](/dpkg/1.md), [**apt-mark**(8)](/apt-mark/8.md), [**dpkg-unhold**(1)](/dpkg-unhold/1.md), [**dpkg-remove**(1)](/dpkg-remove/1.md), [**dpkg-purge**(1)](/dpkg-purge/1.md).
