23 lines
487 B
Plaintext
23 lines
487 B
Plaintext
export LC_ALL=C
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
minimal_apt_get_install='apt-get install -y --no-install-recommends'
|
|
|
|
install_without_postinst() {
|
|
local PACKAGE
|
|
PACKAGE=$1
|
|
|
|
mkdir -p /tmp/install_$PACKAGE
|
|
cd /tmp/install_$PACKAGE
|
|
|
|
apt-get download $PACKAGE
|
|
dpkg --unpack $PACKAGE*.deb
|
|
rm -f /var/lib/dpkg/info/$PACKAGE.postinst
|
|
dpkg --configure $PACKAGE
|
|
|
|
apt-get install -yf #To fix dependencies
|
|
|
|
cd /
|
|
rm -rf /tmp/install_$PACKAGE
|
|
}
|