4

Here I try to install a package locally. If the package doesn't install, I try to install every single word of the output from the failed install. Maybe one of those words will install an unmet dependency.

function install() {
need=$1
apt-get source $need && cd $need
c="./configure --prefix=$HOME/tmp"
m="make && make install"
eval set $($c)$($m)
if [ -x "$(command -v $need)" ]
cd ..
return 0
fi
for i
do install $i
done
}

Comments
Add Comment