diff --git a/modlists/shrink-nodocs b/modlists/shrink-nodocs new file mode 100644 index 0000000..2706fc1 --- /dev/null +++ b/modlists/shrink-nodocs @@ -0,0 +1 @@ +disable-mandb \ No newline at end of file diff --git a/mods/disable-mandb/data/etc/apt/preferences.d/nomandb.pref b/mods/disable-mandb/data/etc/apt/preferences.d/nomandb.pref new file mode 100644 index 0000000..6eff4d3 --- /dev/null +++ b/mods/disable-mandb/data/etc/apt/preferences.d/nomandb.pref @@ -0,0 +1,3 @@ +Package: man-db +Pin: release * +Pin-Priority: -1 diff --git a/mods/disable-mandb/data/etc/dpkg/dpkg.cfg.d/nodoc b/mods/disable-mandb/data/etc/dpkg/dpkg.cfg.d/nodoc new file mode 100644 index 0000000..9d262b5 --- /dev/null +++ b/mods/disable-mandb/data/etc/dpkg/dpkg.cfg.d/nodoc @@ -0,0 +1,5 @@ +path-exclude /usr/share/doc/* +path-exclude /usr/share/man/* +path-exclude /usr/share/groff/* +path-exclude /usr/share/info/* +path-exclude /usr/share/lintian/* \ No newline at end of file diff --git a/mods/disable-mandb/modscript b/mods/disable-mandb/modscript index 3733fdf..ce96636 100755 --- a/mods/disable-mandb/modscript +++ b/mods/disable-mandb/modscript @@ -1,3 +1,6 @@ -#!/bin/sh -mkdir -p "$1/var/lib/man-db" -echo "false" > "$1/var/lib/man-db/auto-update" \ No newline at end of file +#!/bin/bash +rm -rf "$1/usr/share/doc" +rm -rf "$1/usr/share/man" +rm -rf "$1/usr/share/groff" +rm -rf "$1/usr/share/info" +rm -rf "$1/usr/share/lintian" \ No newline at end of file