Skip to content

Instantly share code, notes, and snippets.

@tiagoefmoraes
Last active December 23, 2015 10:09
Show Gist options
  • Save tiagoefmoraes/6619076 to your computer and use it in GitHub Desktop.
Save tiagoefmoraes/6619076 to your computer and use it in GitHub Desktop.
FreePascal silent install (and uninstall) on Ubuntu
wget http://downloads.sourceforge.net/project/freepascal/Linux/2.6.2/fpc-2.6.2.x86_64-linux.tar
tar -xvf fpc-2.6.2.x86_64-linux.tar
pushd fpc-2.6.2.x86_64-linux
echo 'echo /home/action/fpc' > answers.sh
echo 'echo Y' >> answers.sh
echo 'echo Y' >> answers.sh
echo 'echo Y' >> answers.sh
echo 'echo Y' >> answers.sh
echo 'echo N' >> answers.sh
chmod +x answers.sh
./answers.sh | ./install.sh
popd
echo 'export PATH="$HOME/fpc/bin:$PATH"' >> ~/.bash_profile
export PATH="$HOME/fpc/bin:$PATH"
rm fpc-2.6.2.x86_64-linux.tar
rm -rf rm fpc-2.6.2.x86_64-linux
rm -rf /home/action/fpc
rm /home/action/.fpc.cfg
rm /home/action/.config/fppkg.cfg
rm /home/action/.fppkg/config/default
sed -i 's/export PATH="$HOME\/fpc\/bin:$PATH"//g' ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment