aboutsummaryrefslogtreecommitdiff
path: root/content/en/blog/debian/force-package-removal.md
blob: c1a48626f712368dc22477e5e76f6c33d8e5fbd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
title: "Force package removal"
linkTitle: "Force package removal"
date: 2015-01-27
description: >
  Force package removal
---

Here is how to force package removal when post-uninstall script fails :
{{< highlight sh >}}
dpkg --purge --force-all <package>
{{< /highlight >}}

There is another option if you need to be smarter or if it is a pre-uninstall script that fails. Look at `/var/lib/dpkg/info/<package>.*inst`, locate the line that fails, comment it out and try to purge again. Repeat until success!