${SYSROOT}/etc/apt/apt.conf.d/10norecommends: ${SYSROOT}
mkdir -p -m 755 "$(dir $@)"
- printf 'APT::Install-Recommends "false";\n' >"$@"
+ printf 'APT::%s "false";\n' "Install-Recommends" "Keep-Recommends" "Install-Suggests" "Keep-Suggests" >"$@"
chmod 644 "$@"
${SYSROOT}/etc/apt/trusted.gpg.d/: ${SYSROOT} _bootstrap
chroot "$${SYSROOT}" ln -sf /bin/true /usr/local/sbin/invoke-rc.d
chroot "$${SYSROOT}" ln -sf /bin/true /usr/sbin/udevadm
chroot "$${SYSROOT}" apt-get --yes install ${PACKAGES}
+ mkdir -p -m 755 "$${SYSROOT}/var/lib/deborphan/"
+ chroot "$${SYSROOT}" sh -c 'printf "%s\\n" ${PACKAGES} >/var/lib/deborphan/keep'
+ -chroot "$${SYSROOT}" sh -c 'apt-get --yes purge $$(deborphan -an |sed "s;^.* ;;g")'
chroot "$${SYSROOT}" apt-get --yes --auto-remove purge
-chroot "$${SYSROOT}" apt-get --yes --auto-remove upgrade
chroot "$${SYSROOT}" apt-get clean