- stupid Matlab installer wants to download several gigabytes into your /tmp directory.
- You don't have "several gigabytes" available on your root partition (where /tmp is). The installer warns you and/or fails.
- You DO have available disk space, but on some other disk/partition/wherever.
Run the command inside Linux filesystem namespace. For example, create a folder in $HOME
such as mkdir
/home/USER/tmp`
sudo unshare --mount -- /bin/bash -c "mount -o bind,noexec,nosuid,nodev /home/USER/tmp /tmp && sudo -u USER ./matlab_VERSION_glnxa64/install"
So now the installer process runs as usual, but all writes into /tmp are actually written into /foobar/tmp, which has lots and lots of space available. The installer succeeds. Hooray!
man namespaces man unshare