Skip to content

Instantly share code, notes, and snippets.

@desc
Last active October 22, 2015 09:55
Show Gist options
  • Select an option

  • Save desc/5d108a500d44418a19b9 to your computer and use it in GitHub Desktop.

Select an option

Save desc/5d108a500d44418a19b9 to your computer and use it in GitHub Desktop.
JESSIE: Install build packages in vagrant VM
#!/bin/sh
export DEBIAN_FRONTEND=noninteractive
echo "Set APT repository for Debian Jessie"
cat > /etc/apt/sources.list << 'EOF'
deb http://httpredir.debian.org/debian jessie main contrib non-free
deb-src http://httpredir.debian.org/debian jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
deb http://httpredir.debian.org/debian jessie-updates main contrib non-free
deb-src http://httpredir.debian.org/debian jessie-updates main contrib non-free
EOF
echo "Updating package list"
apt-get -q update
echo "Upgrading system to the latest version"
apt-get -q -y --force-yes dist-upgrade
echo "Installing required build packages"
apt-get -q -y --force-yes install git git-buildpackage devscripts build-essential
apt-get -q -y --force-yes install debhelper dh-systemd
apt-get -q -y --force-yes install libxml-xpath-perl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment