How To Install c-ares-devel on CentOS 8

c-ares-devel is Development files for c-ares Development files for c-ares

Introduction

In this tutorial we learn how to install c-ares-devel on CentOS 8.

What is c-ares-devel

This package contains the header files and libraries needed to compile applications or shared objects that use c-ares. c-ares-devel 1.13.0 5.el8 x86_64 88 k c-ares-1.13.0-5.el8.src.rpm baseos Development files for c-ares http MIT This package contains the header files and libraries needed to compile applications or shared objects that use c-ares.

We can use yum or dnf to install c-ares-devel on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install c-ares-devel.

Install c-ares-devel on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install c-ares-devel using dnf by running the following command:

sudo dnf -y install c-ares-devel

Install c-ares-devel on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install c-ares-devel using yum by running the following command:

sudo yum -y install c-ares-devel

How To Uninstall c-ares-devel on CentOS 8

To uninstall only the c-ares-devel package we can use the following command:

sudo dnf remove c-ares-devel

c-ares-devel Package Contents on CentOS 8

/usr/include/ares.h
/usr/include/ares_build.h
/usr/include/ares_dns.h
/usr/include/ares_rules.h
/usr/include/ares_version.h
/usr/lib/libcares.so
/usr/lib/pkgconfig/libcares.pc
/usr/share/man/man3/ares_cancel.3.gz
/usr/share/man/man3/ares_create_query.3.gz
/usr/share/man/man3/ares_destroy.3.gz
/usr/share/man/man3/ares_destroy_options.3.gz
/usr/share/man/man3/ares_dup.3.gz
/usr/share/man/man3/ares_expand_name.3.gz
/usr/share/man/man3/ares_expand_string.3.gz
/usr/share/man/man3/ares_fds.3.gz
/usr/share/man/man3/ares_free_data.3.gz
/usr/share/man/man3/ares_free_hostent.3.gz
/usr/share/man/man3/ares_free_string.3.gz
/usr/share/man/man3/ares_get_servers.3.gz
/usr/share/man/man3/ares_get_servers_ports.3.gz
/usr/share/man/man3/ares_gethostbyaddr.3.gz
/usr/share/man/man3/ares_gethostbyname.3.gz
/usr/share/man/man3/ares_gethostbyname_file.3.gz
/usr/share/man/man3/ares_getnameinfo.3.gz
/usr/share/man/man3/ares_getsock.3.gz
/usr/share/man/man3/ares_inet_ntop.3.gz
/usr/share/man/man3/ares_inet_pton.3.gz
/usr/share/man/man3/ares_init.3.gz
/usr/share/man/man3/ares_init_options.3.gz
/usr/share/man/man3/ares_library_cleanup.3.gz
/usr/share/man/man3/ares_library_init.3.gz
/usr/share/man/man3/ares_library_initialized.3.gz
/usr/share/man/man3/ares_mkquery.3.gz
/usr/share/man/man3/ares_parse_a_reply.3.gz
/usr/share/man/man3/ares_parse_aaaa_reply.3.gz
/usr/share/man/man3/ares_parse_mx_reply.3.gz
/usr/share/man/man3/ares_parse_naptr_reply.3.gz
/usr/share/man/man3/ares_parse_ns_reply.3.gz
/usr/share/man/man3/ares_parse_ptr_reply.3.gz
/usr/share/man/man3/ares_parse_soa_reply.3.gz
/usr/share/man/man3/ares_parse_srv_reply.3.gz
/usr/share/man/man3/ares_parse_txt_reply.3.gz
/usr/share/man/man3/ares_process.3.gz
/usr/share/man/man3/ares_query.3.gz
/usr/share/man/man3/ares_save_options.3.gz
/usr/share/man/man3/ares_search.3.gz
/usr/share/man/man3/ares_send.3.gz
/usr/share/man/man3/ares_set_local_dev.3.gz
/usr/share/man/man3/ares_set_local_ip4.3.gz
/usr/share/man/man3/ares_set_local_ip6.3.gz
/usr/share/man/man3/ares_set_servers.3.gz
/usr/share/man/man3/ares_set_servers_csv.3.gz
/usr/share/man/man3/ares_set_servers_ports.3.gz
/usr/share/man/man3/ares_set_servers_ports_csv.3.gz
/usr/share/man/man3/ares_set_socket_callback.3.gz
/usr/share/man/man3/ares_set_socket_configure_callback.3.gz
/usr/share/man/man3/ares_set_sortlist.3.gz
/usr/share/man/man3/ares_strerror.3.gz
/usr/share/man/man3/ares_timeout.3.gz
/usr/share/man/man3/ares_version.3.gz
/usr/include/ares.h
/usr/include/ares_build.h
/usr/include/ares_dns.h
/usr/include/ares_rules.h
/usr/include/ares_version.h
/usr/lib64/libcares.so
/usr/lib64/pkgconfig/libcares.pc
/usr/share/man/man3/ares_cancel.3.gz
/usr/share/man/man3/ares_create_query.3.gz
/usr/share/man/man3/ares_destroy.3.gz
/usr/share/man/man3/ares_destroy_options.3.gz
/usr/share/man/man3/ares_dup.3.gz
/usr/share/man/man3/ares_expand_name.3.gz
/usr/share/man/man3/ares_expand_string.3.gz
/usr/share/man/man3/ares_fds.3.gz
/usr/share/man/man3/ares_free_data.3.gz
/usr/share/man/man3/ares_free_hostent.3.gz
/usr/share/man/man3/ares_free_string.3.gz
/usr/share/man/man3/ares_get_servers.3.gz
/usr/share/man/man3/ares_get_servers_ports.3.gz
/usr/share/man/man3/ares_gethostbyaddr.3.gz
/usr/share/man/man3/ares_gethostbyname.3.gz
/usr/share/man/man3/ares_gethostbyname_file.3.gz
/usr/share/man/man3/ares_getnameinfo.3.gz
/usr/share/man/man3/ares_getsock.3.gz
/usr/share/man/man3/ares_inet_ntop.3.gz
/usr/share/man/man3/ares_inet_pton.3.gz
/usr/share/man/man3/ares_init.3.gz
/usr/share/man/man3/ares_init_options.3.gz
/usr/share/man/man3/ares_library_cleanup.3.gz
/usr/share/man/man3/ares_library_init.3.gz
/usr/share/man/man3/ares_library_initialized.3.gz
/usr/share/man/man3/ares_mkquery.3.gz
/usr/share/man/man3/ares_parse_a_reply.3.gz
/usr/share/man/man3/ares_parse_aaaa_reply.3.gz
/usr/share/man/man3/ares_parse_mx_reply.3.gz
/usr/share/man/man3/ares_parse_naptr_reply.3.gz
/usr/share/man/man3/ares_parse_ns_reply.3.gz
/usr/share/man/man3/ares_parse_ptr_reply.3.gz
/usr/share/man/man3/ares_parse_soa_reply.3.gz
/usr/share/man/man3/ares_parse_srv_reply.3.gz
/usr/share/man/man3/ares_parse_txt_reply.3.gz
/usr/share/man/man3/ares_process.3.gz
/usr/share/man/man3/ares_query.3.gz
/usr/share/man/man3/ares_save_options.3.gz
/usr/share/man/man3/ares_search.3.gz
/usr/share/man/man3/ares_send.3.gz
/usr/share/man/man3/ares_set_local_dev.3.gz
/usr/share/man/man3/ares_set_local_ip4.3.gz
/usr/share/man/man3/ares_set_local_ip6.3.gz
/usr/share/man/man3/ares_set_servers.3.gz
/usr/share/man/man3/ares_set_servers_csv.3.gz
/usr/share/man/man3/ares_set_servers_ports.3.gz
/usr/share/man/man3/ares_set_servers_ports_csv.3.gz
/usr/share/man/man3/ares_set_socket_callback.3.gz
/usr/share/man/man3/ares_set_socket_configure_callback.3.gz
/usr/share/man/man3/ares_set_sortlist.3.gz
/usr/share/man/man3/ares_strerror.3.gz
/usr/share/man/man3/ares_timeout.3.gz
/usr/share/man/man3/ares_version.3.gz

References

Summary

In this tutorial we learn how to install c-ares-devel on CentOS 8 using yum and dnf.