Skip to content

Commit 9ab176c

Browse files
committed
Add an element to purge c-n-f packages
1 parent 304882a commit 9ab176c

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
========================
2+
purge-command-not-found
3+
========================
4+
Purge command-not-found packages from an image.
5+
6+
Currently the pulp_deb plugin in Pulp does not support certain types of
7+
content, including i18n files and command-not-found indices. This breaks APT
8+
when the command-not-found is installed. This element can be used to
9+
uninstall the package, prior to running any other APT commands that may target
10+
Pulp package mirrors.
11+
12+
No additional configuration is needed, other than including the element.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
3+
set -x
4+
fi
5+
set -eu
6+
set -o pipefail
7+
8+
sudo apt purge -y command-not-found python3-commandnotfound

0 commit comments

Comments
 (0)