Start pbuilder/cowbuilder environment and copy the installer to / inside this environment.

aptitude install menu-xdg xdg-utils
mkdir -p /usr/share/icons /opt/mathematica/7
cd /
find bin boot etc home lib opt root sbin srv tmp usr var > filelist.orig

Install Mathematica in build environment

Now start /bin/sh --nox11 end enter these answers

Create Debian package

cd /
find bin boot etc home lib opt root sbin srv tmp usr var >
sort filelist.orig | uniq -u > installed
mkdir /mathematica
cd /mathematica
rsync -a --files-from=/installed / .
mkdir DEBIAN
cat <<EOF > DEBIAN/control
Package: mathematica
Architecture: amd64
Section: math
Version: 7-1
Maintainer: Carsten Aulbert <>
Priority: Extra
Depends: menu-xdg xdg-utils
Description: Mathematica for the masses
 Mathematica 7 for easy installs

find etc opt usr -type f -exec md5sum {} \; > DEBIAN/md5sums
cd ..
tar cz -C mathematica/DEBIAN -f control.tar.gz .
tar cz --exclude=DEBIAN -C mathematica  -f data.tar.gz .
echo 2.0 > debian-binary
ar rcu mathematica_7-1_amd64.deb  debian-binary control.tar.gz data.tar.gz

-- CarstenAulbert - 28 Jul 2009
Topic revision: r3 - 14 Sep 2011, CarstenAulbert
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback