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

# dpkg-remove(8)

mark packages for removal

## NAME

dpkg-remove - mark packages for removal

## SYNOPSIS

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

## WARNING

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

## DESCRIPTION

**dpkg-remove** marks package(s) to be removed.

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

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-hold**(1)](/dpkg-hold/1.md), [**dpkg-unhold**(1)](/dpkg-unhold/1.md), [**dpkg-purge**(1)](/dpkg-purge/1.md).
