Install Source Code Pro font on Ubuntu

Posted on: Sunday, Apr 08, 2018

Put this Bash script in your home folder and run it to install Source Code Pro. Make it executable with:

chmod +x install-source-code-pro

From your home folder, launch it with:


This file removes all installation files from the ~/Downloads folder when it's done.

#!/usr/bin/env bash

cd Downloads


if [ ! -d "~/.fonts" ] ; then
    mkdir ~/.fonts


cp source-code-pro-*-it/OTF/*.otf ~/.fonts/
rm -rf source-code-pro* 

cd ~/

fc-cache -f -v

Add your comment
You email is never shared with anyone else.

© Copyright 2017 by Roger Pence. All rights reserved.