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 dpkg–dev fakeroot g++ g++–5 ifupdown iproute2 isc–dhcp–client isc–dhcp–common libalgorithm–diff–perl libalgorithm–diff–xs–perl libalgorithm–merge–perl libatm1 libdns–export162 libdpkg–perl libfakeroot libfile–fcntllock–perl libgdbm3 libisc–export160 libmnl0 libperl5.22 libstdc++–5–dev libxtables11 make netbase patch perl perl–modules–5.22 rename xz–utils Suggested packages: bzip2–doc debian–keyring g++–multilib g++–5–multilib gcc–5–doc libstdc++6–5–dbg ppp rdnssd iproute2–doc resolvconf avahi–autoipd isc–dhcp–client–ddns apparmor libstdc++–5–doc make–doc ed diffutils–doc perl–doc libterm–readline–gnu–perl | libterm–readline–perl–perl The following NEW packages will be installed: build–essential bzip2 dpkg–dev fakeroot g++ g++–5 ifupdown iproute2 isc–dhcp–client isc–dhcp–common libalgorithm–diff–perl libalgorithm–diff–xs–perl libalgorithm–merge–perl libatm1 libdns–export162 libdpkg–perl libfakeroot libfile–fcntllock–perl libgdbm3 libisc–export160 libmnl0 libperl5.22 libstdc++–5–dev libxtables11 make netbase patch perl perl–modules–5.22 rename xz–utils 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 dpkg–dev fakeroot g++ g++–5 ifupdown iproute2 isc–dhcp–client isc–dhcp–common libalgorithm–diff–perl libalgorithm–diff–xs–perl libalgorithm–merge–perl libatm1 libdns–export162 libdpkg–perl libfakeroot libfile–fcntllock–perl libgdbm3 libisc–export160 libmnl0 libperl5.22 libstdc++–5–dev libxtables11 make netbase patch perl perl–modules–5.22 rename xz–utils |
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.69–11.el7 base 701 k automake noarch 1.13.4–3.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 gcc–c++ gcc–gfortran gettext git indent intltool libtool make patch patchutils rcs redhat–rpm–config rpm–build rpm–sign subversion swig systemtap |