📅  最后修改于: 2023-12-03 15:35:50.532000             🧑  作者: Mango
zypper install build-essential
- Shell BasicsIf 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.
To install the 'build-essential' package using 'zypper', follow the steps below:
Open the terminal.
Update the package repository index by running the following command:
sudo zypper refresh
Install the 'build-essential' package:
sudo zypper install build-essential
During the installation, you will be prompted to confirm the installation. Type 'y' and press Enter to continue.
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
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.