📜  zypper install build-essential - Shell-Bash (1)

📅  最后修改于: 2023-12-03 15:35:50.532000             🧑  作者: Mango

zypper install build-essential - Shell Basics

If you are a programmer working on a Linux system, you may have faced a situation where you need to build programs from source code. In that case, you need to install some essential build tools like 'gcc', 'make', etc. These tools come bundled together in a package called 'build-essential'.

In this guide, we will learn how to install 'build-essential' package on Linux using the 'zypper' package manager.

Prerequisites
  • A Linux system with 'zypper' package manager installed.
  • The user account must have sudo privileges.
Installing build-essential Package

To install the 'build-essential' package using 'zypper', follow the steps below:

  1. Open the terminal.

  2. Update the package repository index by running the following command:

    sudo zypper refresh
    
  3. Install the 'build-essential' package:

    sudo zypper install build-essential
    
  4. During the installation, you will be prompted to confirm the installation. Type 'y' and press Enter to continue.

  5. Wait for the installation to complete. It may take a few minutes.

Once the installation is complete, you can verify it by checking the version of any of the installed build tools using the following command:

gcc --version
Conclusion

In this guide, we have learned how to install the 'build-essential' package using 'zypper' package manager. This package is required for building programs from source code on Linux systems. Make sure to keep it up-to-date by running regular system updates.