How To Install cppad-devel on CentOS 8

cppad-devel is The cppad C++ include files for Algorithmic Differentiation (AD)

Introduction

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

What is cppad-devel

We refer to the step by step conversion from an algorithm that computes function values to an algorithm that computes derivative values as Algorithmic Differentiation (often referred to as Automatic Differentiation.) Given a C++ algorithm that computes function values, cppad generates an algorithm that computes its derivative values. A brief introduction to Algorithmic Differentiation (AD) can be found at http See the package cppad-doc for documentation of this version of cppad.

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

Install cppad-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 cppad-devel using dnf by running the following command:

sudo dnf -y install cppad-devel

Install cppad-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 cppad-devel using yum by running the following command:

sudo yum -y install cppad-devel

How To Uninstall cppad-devel on CentOS 8

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

sudo dnf remove cppad-devel

cppad-devel Package Contents on CentOS 8

/usr/include/cppad
/usr/include/cppad/base_require.hpp
/usr/include/cppad/configure.hpp
/usr/include/cppad/core
/usr/include/cppad/core/abort_recording.hpp
/usr/include/cppad/core/abs.hpp
/usr/include/cppad/core/abs_normal_fun.hpp
/usr/include/cppad/core/ad.hpp
/usr/include/cppad/core/ad_assign.hpp
/usr/include/cppad/core/ad_binary.hpp
/usr/include/cppad/core/ad_ctor.hpp
/usr/include/cppad/core/ad_fun.hpp
/usr/include/cppad/core/ad_io.hpp
/usr/include/cppad/core/ad_to_string.hpp
/usr/include/cppad/core/ad_type.hpp
/usr/include/cppad/core/ad_valued.hpp
/usr/include/cppad/core/add.hpp
/usr/include/cppad/core/add_eq.hpp
/usr/include/cppad/core/arithmetic.hpp
/usr/include/cppad/core/atan2.hpp
/usr/include/cppad/core/atomic
/usr/include/cppad/core/atomic/atomic_one.hpp
/usr/include/cppad/core/atomic/atomic_three.hpp
/usr/include/cppad/core/atomic/atomic_two.hpp
/usr/include/cppad/core/atomic/three_afun.hpp
/usr/include/cppad/core/atomic/three_ctor.hpp
/usr/include/cppad/core/atomic/three_for_type.hpp
/usr/include/cppad/core/atomic/three_forward.hpp
/usr/include/cppad/core/atomic/three_hes_sparsity.hpp
/usr/include/cppad/core/atomic/three_jac_sparsity.hpp
/usr/include/cppad/core/atomic/three_rev_depend.hpp
/usr/include/cppad/core/atomic/three_reverse.hpp
/usr/include/cppad/core/atomic/two_afun.hpp
/usr/include/cppad/core/atomic/two_clear.hpp
/usr/include/cppad/core/atomic/two_ctor.hpp
/usr/include/cppad/core/atomic/two_for_sparse_hes.hpp
/usr/include/cppad/core/atomic/two_for_sparse_jac.hpp
/usr/include/cppad/core/atomic/two_forward.hpp
/usr/include/cppad/core/atomic/two_option.hpp
/usr/include/cppad/core/atomic/two_rev_depend.hpp
/usr/include/cppad/core/atomic/two_rev_sparse_hes.hpp
/usr/include/cppad/core/atomic/two_rev_sparse_jac.hpp
/usr/include/cppad/core/atomic/two_reverse.hpp
/usr/include/cppad/core/azmul.hpp
/usr/include/cppad/core/base2ad.hpp
/usr/include/cppad/core/base_complex.hpp
/usr/include/cppad/core/base_cond_exp.hpp
/usr/include/cppad/core/base_double.hpp
/usr/include/cppad/core/base_float.hpp
/usr/include/cppad/core/base_hash.hpp
/usr/include/cppad/core/base_limits.hpp
/usr/include/cppad/core/base_std_math.hpp
/usr/include/cppad/core/base_to_string.hpp
/usr/include/cppad/core/bender_quad.hpp
/usr/include/cppad/core/bool_fun.hpp
/usr/include/cppad/core/bool_valued.hpp
/usr/include/cppad/core/capacity_order.hpp
/usr/include/cppad/core/check_for_nan.hpp
/usr/include/cppad/core/chkpoint_one
/usr/include/cppad/core/chkpoint_one/chkpoint_one.hpp
/usr/include/cppad/core/chkpoint_one/ctor.hpp
/usr/include/cppad/core/chkpoint_one/for_sparse_jac.hpp
/usr/include/cppad/core/chkpoint_one/forward.hpp
/usr/include/cppad/core/chkpoint_one/rev_sparse_hes.hpp
/usr/include/cppad/core/chkpoint_one/rev_sparse_jac.hpp
/usr/include/cppad/core/chkpoint_one/reverse.hpp
/usr/include/cppad/core/chkpoint_one/set_hes_sparse_bool.hpp
/usr/include/cppad/core/chkpoint_one/set_hes_sparse_set.hpp
/usr/include/cppad/core/chkpoint_one/set_jac_sparse_bool.hpp
/usr/include/cppad/core/chkpoint_one/set_jac_sparse_set.hpp
/usr/include/cppad/core/chkpoint_two
/usr/include/cppad/core/chkpoint_two/chkpoint_two.hpp
/usr/include/cppad/core/chkpoint_two/ctor.hpp
/usr/include/cppad/core/chkpoint_two/dynamic.hpp
/usr/include/cppad/core/chkpoint_two/for_type.hpp
/usr/include/cppad/core/chkpoint_two/forward.hpp
/usr/include/cppad/core/chkpoint_two/hes_sparsity.hpp
/usr/include/cppad/core/chkpoint_two/jac_sparsity.hpp
/usr/include/cppad/core/chkpoint_two/rev_depend.hpp
/usr/include/cppad/core/chkpoint_two/reverse.hpp
/usr/include/cppad/core/compare.hpp
/usr/include/cppad/core/compound_assign.hpp
/usr/include/cppad/core/con_dyn_var.hpp
/usr/include/cppad/core/cond_exp.hpp
/usr/include/cppad/core/convert.hpp
/usr/include/cppad/core/cppad_assert.hpp
/usr/include/cppad/core/dependent.hpp
/usr/include/cppad/core/discrete
/usr/include/cppad/core/discrete/discrete.hpp
/usr/include/cppad/core/div.hpp
/usr/include/cppad/core/div_eq.hpp
/usr/include/cppad/core/drivers.hpp
/usr/include/cppad/core/epsilon.hpp
/usr/include/cppad/core/equal_op_seq.hpp
/usr/include/cppad/core/for_hes_sparsity.hpp
/usr/include/cppad/core/for_jac_sparsity.hpp
/usr/include/cppad/core/for_one.hpp
/usr/include/cppad/core/for_sparse_hes.hpp
/usr/include/cppad/core/for_sparse_jac.hpp
/usr/include/cppad/core/for_two.hpp
/usr/include/cppad/core/forward
/usr/include/cppad/core/forward/forward.hpp
/usr/include/cppad/core/fun_check.hpp
/usr/include/cppad/core/fun_construct.hpp
/usr/include/cppad/core/fun_eval.hpp
/usr/include/cppad/core/graph
/usr/include/cppad/core/graph/cpp_graph.hpp
/usr/include/cppad/core/graph/from_graph.hpp
/usr/include/cppad/core/graph/from_json.hpp
/usr/include/cppad/core/graph/graph_op_enum.hpp
/usr/include/cppad/core/graph/to_graph.hpp
/usr/include/cppad/core/graph/to_json.hpp
/usr/include/cppad/core/hash_code.hpp
/usr/include/cppad/core/hessian.hpp
/usr/include/cppad/core/identical.hpp
/usr/include/cppad/core/independent
/usr/include/cppad/core/independent/independent.hpp
/usr/include/cppad/core/integer.hpp
/usr/include/cppad/core/jacobian.hpp
/usr/include/cppad/core/lu_ratio.hpp
/usr/include/cppad/core/mul.hpp
/usr/include/cppad/core/mul_eq.hpp
/usr/include/cppad/core/near_equal_ext.hpp
/usr/include/cppad/core/new_dynamic.hpp
/usr/include/cppad/core/num_skip.hpp
/usr/include/cppad/core/numeric_limits.hpp
/usr/include/cppad/core/omp_max_thread.hpp
/usr/include/cppad/core/opt_val_hes.hpp
/usr/include/cppad/core/optimize.hpp
/usr/include/cppad/core/ordered.hpp
/usr/include/cppad/core/parallel_ad.hpp
/usr/include/cppad/core/pow.hpp
/usr/include/cppad/core/print_for.hpp
/usr/include/cppad/core/rev_hes_sparsity.hpp
/usr/include/cppad/core/rev_jac_sparsity.hpp
/usr/include/cppad/core/rev_one.hpp
/usr/include/cppad/core/rev_sparse_hes.hpp
/usr/include/cppad/core/rev_sparse_jac.hpp
/usr/include/cppad/core/rev_two.hpp
/usr/include/cppad/core/reverse.hpp
/usr/include/cppad/core/sign.hpp
/usr/include/cppad/core/sparse.hpp
/usr/include/cppad/core/sparse_hes.hpp
/usr/include/cppad/core/sparse_hessian.hpp
/usr/include/cppad/core/sparse_jac.hpp
/usr/include/cppad/core/sparse_jacobian.hpp
/usr/include/cppad/core/standard_math.hpp
/usr/include/cppad/core/std_math_11.hpp
/usr/include/cppad/core/sub.hpp
/usr/include/cppad/core/sub_eq.hpp
/usr/include/cppad/core/subgraph_jac_rev.hpp
/usr/include/cppad/core/subgraph_reverse.hpp
/usr/include/cppad/core/subgraph_sparsity.hpp
/usr/include/cppad/core/tape_link.hpp
/usr/include/cppad/core/test_vector.hpp
/usr/include/cppad/core/testvector.hpp
/usr/include/cppad/core/unary_minus.hpp
/usr/include/cppad/core/unary_plus.hpp
/usr/include/cppad/core/undef.hpp
/usr/include/cppad/core/user_ad.hpp
/usr/include/cppad/core/value.hpp
/usr/include/cppad/core/var2par.hpp
/usr/include/cppad/core/vec_ad
/usr/include/cppad/core/vec_ad/vec_ad.hpp
/usr/include/cppad/core/zdouble.hpp
/usr/include/cppad/cppad.hpp
/usr/include/cppad/example
/usr/include/cppad/example/atomic_three
/usr/include/cppad/example/atomic_three/mat_mul.hpp
/usr/include/cppad/example/atomic_two
/usr/include/cppad/example/atomic_two/eigen_cholesky.hpp
/usr/include/cppad/example/atomic_two/eigen_mat_inv.hpp
/usr/include/cppad/example/atomic_two/eigen_mat_mul.hpp
/usr/include/cppad/example/base_adolc.hpp
/usr/include/cppad/example/code_gen_fun.hpp
/usr/include/cppad/example/cppad_eigen.hpp
/usr/include/cppad/example/eigen_plugin.hpp
/usr/include/cppad/ipopt
/usr/include/cppad/ipopt/solve.hpp
/usr/include/cppad/ipopt/solve_callback.hpp
/usr/include/cppad/ipopt/solve_result.hpp
/usr/include/cppad/local
/usr/include/cppad/local/abs_op.hpp
/usr/include/cppad/local/acos_op.hpp
/usr/include/cppad/local/acosh_op.hpp
/usr/include/cppad/local/ad_tape.hpp
/usr/include/cppad/local/add_op.hpp
/usr/include/cppad/local/asin_op.hpp
/usr/include/cppad/local/asinh_op.hpp
/usr/include/cppad/local/atan_op.hpp
/usr/include/cppad/local/atanh_op.hpp
/usr/include/cppad/local/atom_state.hpp
/usr/include/cppad/local/atomic_index.hpp
/usr/include/cppad/local/color_general.hpp
/usr/include/cppad/local/color_symmetric.hpp
/usr/include/cppad/local/comp_op.hpp
/usr/include/cppad/local/cond_op.hpp
/usr/include/cppad/local/cos_op.hpp
/usr/include/cppad/local/cosh_op.hpp
/usr/include/cppad/local/cppad_colpack.hpp
/usr/include/cppad/local/cskip_op.hpp
/usr/include/cppad/local/csum_op.hpp
/usr/include/cppad/local/declare_ad.hpp
/usr/include/cppad/local/define.hpp
/usr/include/cppad/local/discrete_op.hpp
/usr/include/cppad/local/div_op.hpp
/usr/include/cppad/local/erf_op.hpp
/usr/include/cppad/local/exp_op.hpp
/usr/include/cppad/local/expm1_op.hpp
/usr/include/cppad/local/graph
/usr/include/cppad/local/graph/cpp_graph_itr.hpp
/usr/include/cppad/local/graph/cpp_graph_op.hpp
/usr/include/cppad/local/graph/json_lexer.hpp
/usr/include/cppad/local/graph/json_parser.hpp
/usr/include/cppad/local/graph/json_writer.hpp
/usr/include/cppad/local/hash_code.hpp
/usr/include/cppad/local/independent.hpp
/usr/include/cppad/local/is_pod.hpp
/usr/include/cppad/local/load_op.hpp
/usr/include/cppad/local/log1p_op.hpp
/usr/include/cppad/local/log_op.hpp
/usr/include/cppad/local/mul_op.hpp
/usr/include/cppad/local/op.hpp
/usr/include/cppad/local/op_code_dyn.hpp
/usr/include/cppad/local/op_code_var.hpp
/usr/include/cppad/local/optimize
/usr/include/cppad/local/optimize/cexp_info.hpp
/usr/include/cppad/local/optimize/csum_op_info.hpp
/usr/include/cppad/local/optimize/csum_stacks.hpp
/usr/include/cppad/local/optimize/get_cexp_info.hpp
/usr/include/cppad/local/optimize/get_dyn_previous.hpp
/usr/include/cppad/local/optimize/get_op_previous.hpp
/usr/include/cppad/local/optimize/get_op_usage.hpp
/usr/include/cppad/local/optimize/get_par_usage.hpp
/usr/include/cppad/local/optimize/hash_code.hpp
/usr/include/cppad/local/optimize/match_op.hpp
/usr/include/cppad/local/optimize/optimize_run.hpp
/usr/include/cppad/local/optimize/record_csum.hpp
/usr/include/cppad/local/optimize/record_pv.hpp
/usr/include/cppad/local/optimize/record_vp.hpp
/usr/include/cppad/local/optimize/record_vv.hpp
/usr/include/cppad/local/optimize/size_pair.hpp
/usr/include/cppad/local/optimize/usage.hpp
/usr/include/cppad/local/parameter_op.hpp
/usr/include/cppad/local/play
/usr/include/cppad/local/play/addr_enum.hpp
/usr/include/cppad/local/play/atom_op_info.hpp
/usr/include/cppad/local/play/player.hpp
/usr/include/cppad/local/play/random_iterator.hpp
/usr/include/cppad/local/play/random_setup.hpp
/usr/include/cppad/local/play/sequential_iterator.hpp
/usr/include/cppad/local/play/subgraph_iterator.hpp
/usr/include/cppad/local/pod_vector.hpp
/usr/include/cppad/local/pow_op.hpp
/usr/include/cppad/local/print_op.hpp
/usr/include/cppad/local/prototype_op.hpp
/usr/include/cppad/local/record
/usr/include/cppad/local/record/comp_op.hpp
/usr/include/cppad/local/record/cond_exp.hpp
/usr/include/cppad/local/record/put_dyn_atomic.hpp
/usr/include/cppad/local/record/put_var_atomic.hpp
/usr/include/cppad/local/record/put_var_vecad.hpp
/usr/include/cppad/local/record/recorder.hpp
/usr/include/cppad/local/set_get_in_parallel.hpp
/usr/include/cppad/local/sign_op.hpp
/usr/include/cppad/local/sin_op.hpp
/usr/include/cppad/local/sinh_op.hpp
/usr/include/cppad/local/sparse
/usr/include/cppad/local/sparse/binary_op.hpp
/usr/include/cppad/local/sparse/internal.hpp
/usr/include/cppad/local/sparse/list_setvec.hpp
/usr/include/cppad/local/sparse/pack_setvec.hpp
/usr/include/cppad/local/sparse/svec_setvec.hpp
/usr/include/cppad/local/sparse/unary_op.hpp
/usr/include/cppad/local/sqrt_op.hpp
/usr/include/cppad/local/std_set.hpp
/usr/include/cppad/local/store_op.hpp
/usr/include/cppad/local/sub_op.hpp
/usr/include/cppad/local/subgraph
/usr/include/cppad/local/subgraph/arg_variable.hpp
/usr/include/cppad/local/subgraph/entire_call.hpp
/usr/include/cppad/local/subgraph/get_rev.hpp
/usr/include/cppad/local/subgraph/info.hpp
/usr/include/cppad/local/subgraph/init_rev.hpp
/usr/include/cppad/local/subgraph/sparsity.hpp
/usr/include/cppad/local/sweep
/usr/include/cppad/local/sweep/call_atomic.hpp
/usr/include/cppad/local/sweep/dynamic.hpp
/usr/include/cppad/local/sweep/for_hes.hpp
/usr/include/cppad/local/sweep/for_jac.hpp
/usr/include/cppad/local/sweep/forward0.hpp
/usr/include/cppad/local/sweep/forward1.hpp
/usr/include/cppad/local/sweep/forward2.hpp
/usr/include/cppad/local/sweep/rev_hes.hpp
/usr/include/cppad/local/sweep/rev_jac.hpp
/usr/include/cppad/local/sweep/reverse.hpp
/usr/include/cppad/local/tan_op.hpp
/usr/include/cppad/local/tanh_op.hpp
/usr/include/cppad/local/utility
/usr/include/cppad/local/utility/cppad_vector_itr.hpp
/usr/include/cppad/local/utility/vector_bool.hpp
/usr/include/cppad/local/zmul_op.hpp
/usr/include/cppad/speed
/usr/include/cppad/speed/det_33.hpp
/usr/include/cppad/speed/det_by_lu.hpp
/usr/include/cppad/speed/det_by_minor.hpp
/usr/include/cppad/speed/det_grad_33.hpp
/usr/include/cppad/speed/det_of_minor.hpp
/usr/include/cppad/speed/mat_sum_sq.hpp
/usr/include/cppad/speed/ode_evaluate.hpp
/usr/include/cppad/speed/sparse_hes_fun.hpp
/usr/include/cppad/speed/sparse_jac_fun.hpp
/usr/include/cppad/speed/uniform_01.hpp
/usr/include/cppad/utility
/usr/include/cppad/utility.hpp
/usr/include/cppad/utility/check_numeric_type.hpp
/usr/include/cppad/utility/check_simple_vector.hpp
/usr/include/cppad/utility/elapsed_seconds.hpp
/usr/include/cppad/utility/error_handler.hpp
/usr/include/cppad/utility/index_sort.hpp
/usr/include/cppad/utility/lu_factor.hpp
/usr/include/cppad/utility/lu_invert.hpp
/usr/include/cppad/utility/lu_solve.hpp
/usr/include/cppad/utility/memory_leak.hpp
/usr/include/cppad/utility/nan.hpp
/usr/include/cppad/utility/near_equal.hpp
/usr/include/cppad/utility/ode_err_control.hpp
/usr/include/cppad/utility/ode_gear.hpp
/usr/include/cppad/utility/ode_gear_control.hpp
/usr/include/cppad/utility/omp_alloc.hpp
/usr/include/cppad/utility/poly.hpp
/usr/include/cppad/utility/pow_int.hpp
/usr/include/cppad/utility/romberg_mul.hpp
/usr/include/cppad/utility/romberg_one.hpp
/usr/include/cppad/utility/rosen_34.hpp
/usr/include/cppad/utility/runge_45.hpp
/usr/include/cppad/utility/set_union.hpp
/usr/include/cppad/utility/sparse2eigen.hpp
/usr/include/cppad/utility/sparse_rc.hpp
/usr/include/cppad/utility/sparse_rcv.hpp
/usr/include/cppad/utility/speed_test.hpp
/usr/include/cppad/utility/test_boolofvoid.hpp
/usr/include/cppad/utility/thread_alloc.hpp
/usr/include/cppad/utility/time_test.hpp
/usr/include/cppad/utility/to_string.hpp
/usr/include/cppad/utility/track_new_del.hpp
/usr/include/cppad/utility/vector.hpp
/usr/include/cppad/utility/vector_bool.hpp
/usr/include/cppad/wno_conversion.hpp
/usr/lib/.build-id
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/f938b88466341992719b07dd2f05cffde58a04
/usr/lib64/libcppad_lib.so
/usr/lib64/libcppad_lib.so.2.0
/usr/lib64/pkgconfig/cppad.pc
/usr/share/doc/cppad-devel
/usr/share/doc/cppad-devel/COPYING
/usr/share/doc/cppad-devel/uw_copy_040507.html
/usr/share/pkgconfig/cppad.pc

References

Summary

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