7 C
Texas
angeloma
Senior Writer and partner

How to install the development and build tools on OpenSUSE 15.2?

In this very short post, you will learn how to install a series of development and build tools on OpenSUSE 15.2 These tools are essential to perform tasks like installing packages from the source code. Or some programming tasks such as package creation.

If you are an application developer and need to package it for a distribution like OpenSUSE, you need some tools. Some of these tools are considered to be essential for the process.

So, all these tools are contained in the word build-essential. Other important packages will be installed there. Some of them are:

  • GCC the GNU C language compiler which is a mainstay for developing various languages and installing programs.
  • make which allows us to compile programs from source code.
  • G++ the GNU compiler for the C++ language which is widely used in QT applications.

And many more.

Install the Build Tools on OpenSUSE 15.2

- Advertisement -

These tools are composed of many different packages that together form the basis for compiling and building packages.

In OpenSUSE, unlike Debian-based distributions, it does not group them into a single package but into a command. In this post, we will only show you the basic packages but OpenSUSE has this methodology for developing and building QT apps or GTK or web development, and so on.

So, open up a terminal and update OpenSUSE 15.2.

sudo zypper up

After that, you can with the following command install them

sudo zypper install -t pattern devel_basis
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 86 NEW packages are going to be installed:
  autoconf automake bash-completion-devel bin86 binutils-devel bison bison-lang cvs cvsps cyrus-sasl-devel e2fsprogs-devel flex gcc gcc7 gcc7-c++ gcc7-info gcc-c++
  gcc-info gdbm-devel gettext-tools git git-core git-cvs git-email git-gui gitk git-svn glibc-devel glibc-info gmp-devel gperf libaio-devel libapparmor-devel libapr1
  libapr-util1 libasan4 libatomic1 libblkid-devel libcilkrts5 libcom_err-devel libdb-4_8-devel libext2fs-devel libfl2 libfl-devel libgmpxx4 libgomp1 libitm1 liblsan0
  libltdl7 libmpx2 libmpxwrappers2 libosip2 libosip2-devel libserf-1-1 libsha1detectcoll1 libstdc++6-devel-gcc7 libstdc++-devel libtool libtsan0 libubsan0 libutf8proc2
  libuuid-devel libXss1 linux-glibc-devel makeinfo ncurses-devel openldap2-devel pam-devel patch patterns-base-basesystem patterns-devel-base-devel_basis
  perl-Authen-SASL perl-DBD-SQLite perl-DBI perl-Digest-HMAC perl-Error perl-MailTools perl-Net-SMTP-SSL perl-Text-Unidecode subversion subversion-bash-completion
  subversion-perl tack tk xhost zlib-devel

The following 2 NEW patterns are going to be installed:
  basesystem devel_basis

The following 26 recommended packages were automatically selected:
  bin86 binutils-devel bison-lang cyrus-sasl-devel e2fsprogs-devel gcc-c++ gcc-info git git-cvs git-email git-gui gitk git-svn glibc-info gmp-devel gperf libaio-devel
  libapparmor-devel libdb-4_8-devel libosip2-devel libstdc++-devel openldap2-devel pam-devel patch subversion subversion-bash-completion

86 new packages to install.
Overall download size: 85.2 MiB. Already cached: 0 B. After the operation, additional 313.5 MiB will be used.
Continue? [y/n/v/...? shows all options] (y):

This will install the basic packages to compile and build any kind of packages. This includes tools like Git, GCC, or make.

As I said it is possible to install packages for the development of a specific language like C/C++ and for that you can run:

sudo zypper install -t pattern devel_C_C++
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 7 NEW packages are going to be installed:
  boost_1_66-jam libboost_headers1_66_0-devel ltrace patterns-devel-C-C++-devel_C_C++ posix_cc swig valgrind

The following NEW pattern is going to be installed:
  devel_C_C++

The following 6 recommended packages were automatically selected:
  boost_1_66-jam libboost_headers1_66_0-devel ltrace posix_cc swig valgrind

7 new packages to install.
Overall download size: 16.7 MiB. Already cached: 0 B. After the operation, additional 143.9 MiB will be used.
Continue? [y/n/v/...? shows all options] (y):

And to filter all the possibilities you can run:

sudo zypper se -t pattern devel

This will show all the sections with the devel filter. This way you can quickly install compile and build tools according to your needs and language.

So, enjoy it.

Conclusion

The development and package building tools are very important in OpenSUSE 15.2 Since many programs that are in the repositories depend on them and installing them can save us time.

On the other hand, they become quite necessary if we are developers or application packagers.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article