Skip to content

Instantly share code, notes, and snippets.

@zuyu
Last active July 27, 2025 22:25
Show Gist options
  • Save zuyu/7d5682a5c75282c596449758d21db5ed to your computer and use it in GitHub Desktop.
Save zuyu/7d5682a5c75282c596449758d21db5ed to your computer and use it in GitHub Desktop.

Revisions

  1. zuyu revised this gist Apr 20, 2022. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions ubuntu-install-gcc-6
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    sudo apt-get update && \
    sudo apt-get install build-essential software-properties-common -y && \
    sudo apt update && \
    sudo apt install build-essential software-properties-common -y && \
    sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
    sudo apt-get update && \
    sudo apt-get install gcc-6 g++-6 -y && \
    sudo apt update && \
    sudo apt install gcc-6 g++-6 -y && \
    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 && \
    gcc -v
  2. zuyu created this gist Feb 16, 2018.
    7 changes: 7 additions & 0 deletions ubuntu-install-gcc-6
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    sudo apt-get update && \
    sudo apt-get install build-essential software-properties-common -y && \
    sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
    sudo apt-get update && \
    sudo apt-get install gcc-6 g++-6 -y && \
    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 && \
    gcc -v