How to install «development tools» for Ubuntu using apt-get?

In linux you will need to install ‘Development Tools’ group if you want to  compile software and build new rpms. These tools include, core development tools such as automake, gcc and debuggers which is required to compile software . In this article i will explain how to install “development tools” on Ubuntu and Centos 

How to install “development tools” on Ubuntu using apt-get ?

On an Ubuntu machine, you can use the following command to install “development tools”

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22   root@test:/# sudo apt-get install build-essential bash: sudo: command not found root@test:/# apt-get install build-essential Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: bzip2 dpkgdev fakeroot g++ g++5 ifupdown iproute2 iscdhcpclient iscdhcpcommon libalgorithmdiffperl libalgorithmdiffxsperl libalgorithmmergeperl libatm1 libdnsexport162 libdpkgperl libfakeroot libfilefcntllockperl libgdbm3 libiscexport160 libmnl0 libperl5.22 libstdc++5dev libxtables11 make netbase patch perl perlmodules5.22 rename xzutils Suggested packages: bzip2doc debiankeyring g++multilib g++5multilib gcc5doc libstdc++65dbg ppp rdnssd iproute2doc resolvconf avahiautoipd iscdhcpclientddns apparmor libstdc++5doc makedoc ed diffutilsdoc perldoc libtermreadlinegnuperl | libtermreadlineperlperl The following NEW packages will be installed: buildessential bzip2 dpkgdev fakeroot g++ g++5 ifupdown iproute2 iscdhcpclient iscdhcpcommon libalgorithmdiffperl libalgorithmdiffxsperl libalgorithmmergeperl libatm1 libdnsexport162 libdpkgperl libfakeroot libfilefcntllockperl libgdbm3 libiscexport160 libmnl0 libperl5.22 libstdc++5dev libxtables11 make netbase patch perl perlmodules5.22 rename xzutils 0 upgraded, 31 newly installed, 0 to remove and 30 not upgraded. Need to get 1926 kB/19.1 MB of archives. After this operation, 89.2 MB of additional disk space will be used.  

As you can see in the output, following packages will be installed

1 2 3 4 5   bzip2 dpkgdev fakeroot g++ g++5 ifupdown iproute2 iscdhcpclient iscdhcpcommon libalgorithmdiffperl libalgorithmdiffxsperl libalgorithmmergeperl libatm1 libdnsexport162 libdpkgperl libfakeroot libfilefcntllockperl libgdbm3 libiscexport160 libmnl0 libperl5.22 libstdc++5dev libxtables11 make netbase patch perl perlmodules5.22 rename xzutils  

How to install “development tools” on Centos ?

On a Centos machine, you can use the following command to install “development tools”

1 2 3 4 5 6 7 8   yum groupinstall ‘Development Tools’   Installing for group install “Development Tools”: autoconf noarch 2.6911.el7 base 701 k automake noarch 1.13.43.el7 base 679 k bison x86_64  

This will install following packages

1 2 3   autoconf automake bison byacc cscope ctags diffstat doxygen elfutils flex gcc gccc++ gccgfortran gettext git indent intltool libtool make patch patchutils rcs redhatrpmconfig rpmbuild rpmsign subversion swig systemtap  

Author: , 0000-00-00