gcc, alpine linux,

Install gcc on Alpine Linux

Jul 07, 2023 · 1 min read · Post a comment

GCC is a widely used compiler suite for compiling code written in languages such as C, C++, Objective-C, Fortran, Ada, and others. Let’s see how to install GCC on Alpine Linux.

Prerequisites

  • Alpine Linux
  • sudo privileges

Install GCC on Alpine Linux

Step 1. Update and upgrade the packages.

sudo apk update && apk upgrade

Step 2. Install gcc.

sudo apk add build-base

Step 3. Verify the installation.

gcc --version

Conclusion

Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.