How To Install log4c-devel on Rocky Linux 8

In this tutorial we learn how to install log4c-devel on Rocky Linux 8. log4c-devel is Header files, libraries and development documentation for log4c

Introduction

In this tutorial we learn how to install log4c-devel on Rocky Linux 8.

What is log4c-devel

Log4c is a C language library for flexible logging to files, syslog and other destinations. It is modeled after the Log for Java library (log4j), staying as close to their API as is reasonable. This package contains development files for log4c. If you like to develop programs using log4c, you will need to install log4c-devel.

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

Install log4c-devel on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install log4c-devel

Install log4c-devel on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install log4c-devel

How To Uninstall log4c-devel on Rocky Linux 8

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

sudo dnf remove log4c-devel

log4c-devel Package Contents on Rocky Linux 8

/usr/bin/log4c-config
/usr/include/log4c
/usr/include/log4c.h
/usr/include/log4c/appender.h
/usr/include/log4c/appender_type_mmap.h
/usr/include/log4c/appender_type_rollingfile.h
/usr/include/log4c/appender_type_stream.h
/usr/include/log4c/appender_type_stream2.h
/usr/include/log4c/appender_type_syslog.h
/usr/include/log4c/buffer.h
/usr/include/log4c/category.h
/usr/include/log4c/config-win32.h
/usr/include/log4c/defs.h
/usr/include/log4c/init.h
/usr/include/log4c/layout.h
/usr/include/log4c/layout_type_basic.h
/usr/include/log4c/layout_type_basic_r.h
/usr/include/log4c/layout_type_dated.h
/usr/include/log4c/layout_type_dated_local.h
/usr/include/log4c/layout_type_dated_local_r.h
/usr/include/log4c/layout_type_dated_r.h
/usr/include/log4c/location_info.h
/usr/include/log4c/logging_event.h
/usr/include/log4c/priority.h
/usr/include/log4c/rc.h
/usr/include/log4c/rollingpolicy.h
/usr/include/log4c/rollingpolicy_type_sizewin.h
/usr/include/log4c/version.h
/usr/lib64/liblog4c.so
/usr/lib64/pkgconfig/log4c.pc
/usr/share/aclocal/log4c.m4
/usr/share/man/man1/log4c-config.1.gz
/usr/share/man/man3/log4c_LOG4C_LOCATION_INFO_INITIALIZER.3.gz
/usr/share/man/man3/log4c_LOG4C_MAJOR_VERSION.3.gz
/usr/share/man/man3/log4c_LOG4C_MICRO_VERSION.3.gz
/usr/share/man/man3/log4c_LOG4C_MINOR_VERSION.3.gz
/usr/share/man/man3/log4c_LOG4C_PRIORITY_ALERT.3.gz
/usr/share/man/man3/log4c_LOG4C_PRIORITY_CRIT.3.gz
/usr/share/man/man3/log4c_LOG4C_PRIORITY_DEBUG.3.gz
/usr/share/man/man3/log4c_LOG4C_PRIORITY_ERROR.3.gz
/usr/share/man/man3/log4c_LOG4C_PRIORITY_FATAL.3.gz
/usr/share/man/man3/log4c_LOG4C_PRIORITY_INFO.3.gz
/usr/share/man/man3/log4c_LOG4C_PRIORITY_NOTICE.3.gz
/usr/share/man/man3/log4c_LOG4C_PRIORITY_NOTSET.3.gz
/usr/share/man/man3/log4c_LOG4C_PRIORITY_TRACE.3.gz
/usr/share/man/man3/log4c_LOG4C_PRIORITY_UNKNOWN.3.gz
/usr/share/man/man3/log4c_LOG4C_PRIORITY_WARN.3.gz
/usr/share/man/man3/log4c_ROLLINGPOLICY_ROLLOVER_ERR_CAN_LOG.3.gz
/usr/share/man/man3/log4c___log4c_category_trace.3.gz
/usr/share/man/man3/log4c_appender.h.3.gz
/usr/share/man/man3/log4c_appender_append.3.gz
/usr/share/man/man3/log4c_appender_close.3.gz
/usr/share/man/man3/log4c_appender_delete.3.gz
/usr/share/man/man3/log4c_appender_get.3.gz
/usr/share/man/man3/log4c_appender_get_layout.3.gz
/usr/share/man/man3/log4c_appender_get_name.3.gz
/usr/share/man/man3/log4c_appender_get_type.3.gz
/usr/share/man/man3/log4c_appender_get_udata.3.gz
/usr/share/man/man3/log4c_appender_new.3.gz
/usr/share/man/man3/log4c_appender_open.3.gz
/usr/share/man/man3/log4c_appender_print.3.gz
/usr/share/man/man3/log4c_appender_set_layout.3.gz
/usr/share/man/man3/log4c_appender_set_type.3.gz
/usr/share/man/man3/log4c_appender_set_udata.3.gz
/usr/share/man/man3/log4c_appender_t.3.gz
/usr/share/man/man3/log4c_appender_type.3.gz
/usr/share/man/man3/log4c_appender_type_define.3.gz
/usr/share/man/man3/log4c_appender_type_get.3.gz
/usr/share/man/man3/log4c_appender_type_mmap.3.gz
/usr/share/man/man3/log4c_appender_type_mmap.h.3.gz
/usr/share/man/man3/log4c_appender_type_rollingfile.3.gz
/usr/share/man/man3/log4c_appender_type_rollingfile.h.3.gz
/usr/share/man/man3/log4c_appender_type_set.3.gz
/usr/share/man/man3/log4c_appender_type_stream.3.gz
/usr/share/man/man3/log4c_appender_type_stream.h.3.gz
/usr/share/man/man3/log4c_appender_type_stream2.3.gz
/usr/share/man/man3/log4c_appender_type_stream2.h.3.gz
/usr/share/man/man3/log4c_appender_type_syslog.3.gz
/usr/share/man/man3/log4c_appender_type_syslog.h.3.gz
/usr/share/man/man3/log4c_appender_type_t.3.gz
/usr/share/man/man3/log4c_appender_types_free.3.gz
/usr/share/man/man3/log4c_appender_types_print.3.gz
/usr/share/man/man3/log4c_buffer.h.3.gz
/usr/share/man/man3/log4c_buffer_t.3.gz
/usr/share/man/man3/log4c_bug.3.gz
/usr/share/man/man3/log4c_category.h.3.gz
/usr/share/man/man3/log4c_category_alert.3.gz
/usr/share/man/man3/log4c_category_crit.3.gz
/usr/share/man/man3/log4c_category_debug.3.gz
/usr/share/man/man3/log4c_category_define.3.gz
/usr/share/man/man3/log4c_category_delete.3.gz
/usr/share/man/man3/log4c_category_error.3.gz
/usr/share/man/man3/log4c_category_fatal.3.gz
/usr/share/man/man3/log4c_category_get.3.gz
/usr/share/man/man3/log4c_category_get_additivity.3.gz
/usr/share/man/man3/log4c_category_get_appender.3.gz
/usr/share/man/man3/log4c_category_get_chainedpriority.3.gz
/usr/share/man/man3/log4c_category_get_name.3.gz
/usr/share/man/man3/log4c_category_get_priority.3.gz
/usr/share/man/man3/log4c_category_info.3.gz
/usr/share/man/man3/log4c_category_is_alert_enabled.3.gz
/usr/share/man/man3/log4c_category_is_crit_enabled.3.gz
/usr/share/man/man3/log4c_category_is_debug_enabled.3.gz
/usr/share/man/man3/log4c_category_is_error_enabled.3.gz
/usr/share/man/man3/log4c_category_is_fatal_enabled.3.gz
/usr/share/man/man3/log4c_category_is_info_enabled.3.gz
/usr/share/man/man3/log4c_category_is_notice_enabled.3.gz
/usr/share/man/man3/log4c_category_is_priority_enabled.3.gz
/usr/share/man/man3/log4c_category_is_trace_enabled.3.gz
/usr/share/man/man3/log4c_category_is_warn_enabled.3.gz
/usr/share/man/man3/log4c_category_list.3.gz
/usr/share/man/man3/log4c_category_log.3.gz
/usr/share/man/man3/log4c_category_log_locinfo.3.gz
/usr/share/man/man3/log4c_category_new.3.gz
/usr/share/man/man3/log4c_category_notice.3.gz
/usr/share/man/man3/log4c_category_print.3.gz
/usr/share/man/man3/log4c_category_set_additivity.3.gz
/usr/share/man/man3/log4c_category_set_appender.3.gz
/usr/share/man/man3/log4c_category_set_priority.3.gz
/usr/share/man/man3/log4c_category_t.3.gz
/usr/share/man/man3/log4c_category_warn.3.gz
/usr/share/man/man3/log4c_deprecated.3.gz
/usr/share/man/man3/log4c_fini.3.gz
/usr/share/man/man3/log4c_init.3.gz
/usr/share/man/man3/log4c_init.h.3.gz
/usr/share/man/man3/log4c_layout.h.3.gz
/usr/share/man/man3/log4c_layout_delete.3.gz
/usr/share/man/man3/log4c_layout_format.3.gz
/usr/share/man/man3/log4c_layout_get.3.gz
/usr/share/man/man3/log4c_layout_get_name.3.gz
/usr/share/man/man3/log4c_layout_get_type.3.gz
/usr/share/man/man3/log4c_layout_get_udata.3.gz
/usr/share/man/man3/log4c_layout_new.3.gz
/usr/share/man/man3/log4c_layout_print.3.gz
/usr/share/man/man3/log4c_layout_set_type.3.gz
/usr/share/man/man3/log4c_layout_set_udata.3.gz
/usr/share/man/man3/log4c_layout_t.3.gz
/usr/share/man/man3/log4c_layout_type.3.gz
/usr/share/man/man3/log4c_layout_type_basic.h.3.gz
/usr/share/man/man3/log4c_layout_type_basic_r.h.3.gz
/usr/share/man/man3/log4c_layout_type_dated.h.3.gz
/usr/share/man/man3/log4c_layout_type_dated_local.h.3.gz
/usr/share/man/man3/log4c_layout_type_dated_local_r.h.3.gz
/usr/share/man/man3/log4c_layout_type_dated_r.h.3.gz
/usr/share/man/man3/log4c_layout_type_define.3.gz
/usr/share/man/man3/log4c_layout_type_get.3.gz
/usr/share/man/man3/log4c_layout_type_set.3.gz
/usr/share/man/man3/log4c_layout_type_t.3.gz
/usr/share/man/man3/log4c_layout_types_free.3.gz
/usr/share/man/man3/log4c_layout_types_print.3.gz
/usr/share/man/man3/log4c_load.3.gz
/usr/share/man/man3/log4c_location.3.gz
/usr/share/man/man3/log4c_location_info.h.3.gz
/usr/share/man/man3/log4c_location_info_t.3.gz
/usr/share/man/man3/log4c_logging_event.h.3.gz
/usr/share/man/man3/log4c_logging_event_delete.3.gz
/usr/share/man/man3/log4c_logging_event_new.3.gz
/usr/share/man/man3/log4c_logging_event_t.3.gz
/usr/share/man/man3/log4c_major_version.3.gz
/usr/share/man/man3/log4c_micro_version.3.gz
/usr/share/man/man3/log4c_minor_version.3.gz
/usr/share/man/man3/log4c_priority.h.3.gz
/usr/share/man/man3/log4c_priority_level_t.3.gz
/usr/share/man/man3/log4c_priority_to_int.3.gz
/usr/share/man/man3/log4c_priority_to_string.3.gz
/usr/share/man/man3/log4c_rc.3.gz
/usr/share/man/man3/log4c_rc.h.3.gz
/usr/share/man/man3/log4c_rc_t.3.gz
/usr/share/man/man3/log4c_rollingfile_get_current_file_size.3.gz
/usr/share/man/man3/log4c_rollingfile_make_udata.3.gz
/usr/share/man/man3/log4c_rollingfile_udata_get_files_prefix.3.gz
/usr/share/man/man3/log4c_rollingfile_udata_get_logdir.3.gz
/usr/share/man/man3/log4c_rollingfile_udata_set_files_prefix.3.gz
/usr/share/man/man3/log4c_rollingfile_udata_set_logdir.3.gz
/usr/share/man/man3/log4c_rollingfile_udata_set_policy.3.gz
/usr/share/man/man3/log4c_rollingpolicy.h.3.gz
/usr/share/man/man3/log4c_rollingpolicy_fini.3.gz
/usr/share/man/man3/log4c_rollingpolicy_get.3.gz
/usr/share/man/man3/log4c_rollingpolicy_get_rfudata.3.gz
/usr/share/man/man3/log4c_rollingpolicy_get_udata.3.gz
/usr/share/man/man3/log4c_rollingpolicy_init.3.gz
/usr/share/man/man3/log4c_rollingpolicy_is_triggering_event.3.gz
/usr/share/man/man3/log4c_rollingpolicy_set_type.3.gz
/usr/share/man/man3/log4c_rollingpolicy_set_udata.3.gz
/usr/share/man/man3/log4c_rollingpolicy_sizewin_udata_t.3.gz
/usr/share/man/man3/log4c_rollingpolicy_t.3.gz
/usr/share/man/man3/log4c_rollingpolicy_type.3.gz
/usr/share/man/man3/log4c_rollingpolicy_type_get.3.gz
/usr/share/man/man3/log4c_rollingpolicy_type_set.3.gz
/usr/share/man/man3/log4c_rollingpolicy_type_sizewin.h.3.gz
/usr/share/man/man3/log4c_rollingpolicy_type_t.3.gz
/usr/share/man/man3/log4c_sizewin_make_udata.3.gz
/usr/share/man/man3/log4c_sizewin_udata_set_appender.3.gz
/usr/share/man/man3/log4c_sizewin_udata_set_file_maxsize.3.gz
/usr/share/man/man3/log4c_sizewin_udata_set_max_num_files.3.gz
/usr/share/man/man3/log4c_stream2_get_flags.3.gz
/usr/share/man/man3/log4c_stream2_get_fp.3.gz
/usr/share/man/man3/log4c_stream2_set_flags.3.gz
/usr/share/man/man3/log4c_stream2_set_fp.3.gz
/usr/share/man/man3/log4c_todo.3.gz
/usr/share/man/man3/log4c_version.3.gz
/usr/share/man/man3/log4c_version.h.3.gz

References

Summary

In this tutorial we learn how to install log4c-devel on Rocky Linux 8 using yum and dnf.