How To Install sundials on CentOS 8

sundials is Suite of nonlinear solvers

Introduction

In this tutorial we learn how to install sundials on CentOS 8.

What is sundials

SUNDIALS is a SUite of Non-linear DIfferential/ALgebraic equation Solvers for use in writing mathematical software. SUNDIALS was implemented with the goal of providing robust time integrators and nonlinear solvers that can easily be incorporated into existing simulation codes. The primary design goals were to require minimal information from the user, allow users to easily supply their own data structures underneath the solvers, and allow for easy incorporation of user-supplied linear solvers and preconditioners.

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

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

sudo dnf -y install sundials

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

sudo yum -y install sundials

How To Uninstall sundials on CentOS 8

To uninstall only the sundials package we can use the following command:

sudo dnf remove sundials

sundials Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/eaa7659a78f77b719d6870e0736f0f58541334
/usr/lib/.build-id/02
/usr/lib/.build-id/02/6a9ce903ea7aa687aec27bf0903cac5ac50dfc
/usr/lib/.build-id/08
/usr/lib/.build-id/08/81a0356e9f9d0ce483934f7afa751dc528121a
/usr/lib/.build-id/09
/usr/lib/.build-id/09/1de068e2bc7ee9ea98181f1194181f29747554
/usr/lib/.build-id/10
/usr/lib/.build-id/10/31127f87d6c350405b5038f3775e722b52cd80
/usr/lib/.build-id/18
/usr/lib/.build-id/18/48f7ae79a783827e31855312699ea04647fb1b
/usr/lib/.build-id/28
/usr/lib/.build-id/28/8c31a94724554745ac7027f29781e487f67046
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/1bfdaf2bb74d8a3c72ccec51ffd482aa2b11a7
/usr/lib/.build-id/34
/usr/lib/.build-id/34/fa321abc7012ffbd766e0ff25e503ad6a846a4
/usr/lib/.build-id/44
/usr/lib/.build-id/44/1f7d9480ccad0bd021b074272869561190f453
/usr/lib/.build-id/44/7cdbc797eb30acc7a5f8243b55cb5a20b0e537
/usr/lib/.build-id/44/cb0fb92cec89a2b46db37fbc9e2666109df5f6
/usr/lib/.build-id/4c
/usr/lib/.build-id/4c/113ae90c58f9f60f78611bad1ce166cdf973e6
/usr/lib/.build-id/57
/usr/lib/.build-id/57/861b0059a70e13b7d6c1f30eb2eed1c5b2c73f
/usr/lib/.build-id/62
/usr/lib/.build-id/62/c872a912172ab43e0e3406c0e07b7475fd2ba6
/usr/lib/.build-id/62/dcc83419099eb19e7230b64af897b3e13f4b64
/usr/lib/.build-id/67
/usr/lib/.build-id/67/321e05925153ad8af290a223bb13fc63875e61
/usr/lib/.build-id/67/ff72f6710bc42ac233d53973b5836d53c154b9
/usr/lib/.build-id/69
/usr/lib/.build-id/69/146e706454c7be51a94ed1f9fe13d789aa5312
/usr/lib/.build-id/74
/usr/lib/.build-id/74/27bf00d2407e0583b88284aa8d12c92d63af7b
/usr/lib/.build-id/77
/usr/lib/.build-id/77/43b7640d5f45f54981142dc32c0af4cdc5bdf3
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/9d8dacec022cf3aa43f9a6f114b3796e822e36
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/32d441d3b54721e32073d0dc07177f75d0cc18
/usr/lib/.build-id/89
/usr/lib/.build-id/89/d48e7f7393d199c48f8acb5477d1bf0a099518
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/697e76ba1888bb7d22eccbb0bfc0daf2f7bbed
/usr/lib/.build-id/93
/usr/lib/.build-id/93/0fba47418113560b44b334afb99f6c866f5496
/usr/lib/.build-id/99
/usr/lib/.build-id/99/5365a336476be18c6039e963a20268ab1db629
/usr/lib/.build-id/99/c1ac8ace491e6136879f9b194af83d27ba418b
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/eec1b20c5acaf53ad3e944690ef2feb16c6c6d
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/790fa290549bf0d0250860299a8f4177fc6dc5
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/7574e9b2d9e24b074d9874df48f07c495fe763
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/f788631f5451b87dba33bebf8b27beb5d60ec1
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/c03d8399dea7bbd740129f4e34973410ad3f09
/usr/lib/.build-id/b0
/usr/lib/.build-id/b0/1ddbd1aa67261ce1e26255308dc92cee81c1ff
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/653406c8099dc7c1a494118bc78d31b41adc1f
/usr/lib/.build-id/be
/usr/lib/.build-id/be/29b66ce2d07b62bce51b31f69bf040be2fc520
/usr/lib/.build-id/be/a0fb060029b6097d35c734d94e2dbe29c1c93a
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/cc01d7c9fb5905194ac0a388db9c6ff81aa374
/usr/lib/.build-id/c8
/usr/lib/.build-id/c8/e9262da6b43dbb0ed3703521855bdc407d1ece
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/7141a990cbde25c2ba2ef0fd9ad29266bf0de5
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/3f70bdc96ce97da40d55266263462a20f6dc46
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/55ae127faa47b62351bdba5f3e0cd0ae89619e
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/6fbd012bf34a694a54ff8237e30691bf638165
/usr/lib/.build-id/dd/fcaa2a714781d689b14203c6f9aa3f0a84c15b
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/7fe23850add702768edf1de277b701f91ad708
/usr/lib/.build-id/e1
/usr/lib/.build-id/e1/e7e1d89827775fbc8fc678cc056295ea3bcf86
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/aa2e5f75e135888346a23ee0e452a304844ab9
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/e53028c10f38d6f815a747e6638a19a0e409d4
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/8ae30acaf43ba7db2edb4f422a949eea55fac9
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/1d9fb3823beeb208b5228982ceee077c05237c
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/face3f9d1a2b8893df0b12d8737dabbf3e3f5a
/usr/lib64/libsundials_arkode.so.3
/usr/lib64/libsundials_arkode.so.3.1.0
/usr/lib64/libsundials_cvode.so.4
/usr/lib64/libsundials_cvode.so.4.1.0
/usr/lib64/libsundials_cvodes.so.4
/usr/lib64/libsundials_cvodes.so.4.1.0
/usr/lib64/libsundials_fnvecopenmp.so.4
/usr/lib64/libsundials_fnvecopenmp.so.4.1.0
/usr/lib64/libsundials_fnvecopenmp_mod.so.4
/usr/lib64/libsundials_fnvecopenmp_mod.so.4.1.0
/usr/lib64/libsundials_fnvecserial.so.4
/usr/lib64/libsundials_fnvecserial.so.4.1.0
/usr/lib64/libsundials_fnvecserial_mod.so.4
/usr/lib64/libsundials_fnvecserial_mod.so.4.1.0
/usr/lib64/libsundials_fsunlinsolband.so.2
/usr/lib64/libsundials_fsunlinsolband.so.2.1.0
/usr/lib64/libsundials_fsunlinsolband_mod.so.4
/usr/lib64/libsundials_fsunlinsolband_mod.so.4.1.0
/usr/lib64/libsundials_fsunlinsoldense.so.2
/usr/lib64/libsundials_fsunlinsoldense.so.2.1.0
/usr/lib64/libsundials_fsunlinsoldense_mod.so.4
/usr/lib64/libsundials_fsunlinsoldense_mod.so.4.1.0
/usr/lib64/libsundials_fsunlinsolklu.so.2
/usr/lib64/libsundials_fsunlinsolklu.so.2.1.0
/usr/lib64/libsundials_fsunlinsolklu_mod.so.4
/usr/lib64/libsundials_fsunlinsolklu_mod.so.4.1.0
/usr/lib64/libsundials_fsunlinsolpcg.so.2
/usr/lib64/libsundials_fsunlinsolpcg.so.2.1.0
/usr/lib64/libsundials_fsunlinsolpcg_mod.so.4
/usr/lib64/libsundials_fsunlinsolpcg_mod.so.4.1.0
/usr/lib64/libsundials_fsunlinsolspbcgs.so.2
/usr/lib64/libsundials_fsunlinsolspbcgs.so.2.1.0
/usr/lib64/libsundials_fsunlinsolspbcgs_mod.so.4
/usr/lib64/libsundials_fsunlinsolspbcgs_mod.so.4.1.0
/usr/lib64/libsundials_fsunlinsolspfgmr.so.2
/usr/lib64/libsundials_fsunlinsolspfgmr.so.2.1.0
/usr/lib64/libsundials_fsunlinsolspfgmr_mod.so.4
/usr/lib64/libsundials_fsunlinsolspfgmr_mod.so.4.1.0
/usr/lib64/libsundials_fsunlinsolspgmr.so.2
/usr/lib64/libsundials_fsunlinsolspgmr.so.2.1.0
/usr/lib64/libsundials_fsunlinsolspgmr_mod.so.4
/usr/lib64/libsundials_fsunlinsolspgmr_mod.so.4.1.0
/usr/lib64/libsundials_fsunlinsolsptfqmr.so.2
/usr/lib64/libsundials_fsunlinsolsptfqmr.so.2.1.0
/usr/lib64/libsundials_fsunlinsolsptfqmr_mod.so.4
/usr/lib64/libsundials_fsunlinsolsptfqmr_mod.so.4.1.0
/usr/lib64/libsundials_fsunmatrixband.so.2
/usr/lib64/libsundials_fsunmatrixband.so.2.1.0
/usr/lib64/libsundials_fsunmatrixband_mod.so.4
/usr/lib64/libsundials_fsunmatrixband_mod.so.4.1.0
/usr/lib64/libsundials_fsunmatrixdense.so.2
/usr/lib64/libsundials_fsunmatrixdense.so.2.1.0
/usr/lib64/libsundials_fsunmatrixdense_mod.so.4
/usr/lib64/libsundials_fsunmatrixdense_mod.so.4.1.0
/usr/lib64/libsundials_fsunmatrixsparse.so.2
/usr/lib64/libsundials_fsunmatrixsparse.so.2.1.0
/usr/lib64/libsundials_fsunmatrixsparse_mod.so.4
/usr/lib64/libsundials_fsunmatrixsparse_mod.so.4.1.0
/usr/lib64/libsundials_fsunnonlinsolfixedpoint.so.1
/usr/lib64/libsundials_fsunnonlinsolfixedpoint.so.1.1.0
/usr/lib64/libsundials_fsunnonlinsolfixedpoint_mod.so.4
/usr/lib64/libsundials_fsunnonlinsolfixedpoint_mod.so.4.1.0
/usr/lib64/libsundials_fsunnonlinsolnewton.so.1
/usr/lib64/libsundials_fsunnonlinsolnewton.so.1.1.0
/usr/lib64/libsundials_fsunnonlinsolnewton_mod.so.4
/usr/lib64/libsundials_fsunnonlinsolnewton_mod.so.4.1.0
/usr/lib64/libsundials_ida.so.4
/usr/lib64/libsundials_ida.so.4.1.0
/usr/lib64/libsundials_idas.so.3
/usr/lib64/libsundials_idas.so.3.1.0
/usr/lib64/libsundials_kinsol.so.4
/usr/lib64/libsundials_kinsol.so.4.1.0
/usr/lib64/libsundials_nvecopenmp.so.4
/usr/lib64/libsundials_nvecopenmp.so.4.1.0
/usr/lib64/libsundials_nvecserial.so.4
/usr/lib64/libsundials_nvecserial.so.4.1.0
/usr/lib64/libsundials_sunlinsolband.so.2
/usr/lib64/libsundials_sunlinsolband.so.2.1.0
/usr/lib64/libsundials_sunlinsoldense.so.2
/usr/lib64/libsundials_sunlinsoldense.so.2.1.0
/usr/lib64/libsundials_sunlinsolklu.so.2
/usr/lib64/libsundials_sunlinsolklu.so.2.1.0
/usr/lib64/libsundials_sunlinsolpcg.so.2
/usr/lib64/libsundials_sunlinsolpcg.so.2.1.0
/usr/lib64/libsundials_sunlinsolspbcgs.so.2
/usr/lib64/libsundials_sunlinsolspbcgs.so.2.1.0
/usr/lib64/libsundials_sunlinsolspfgmr.so.2
/usr/lib64/libsundials_sunlinsolspfgmr.so.2.1.0
/usr/lib64/libsundials_sunlinsolspgmr.so.2
/usr/lib64/libsundials_sunlinsolspgmr.so.2.1.0
/usr/lib64/libsundials_sunlinsolsptfqmr.so.2
/usr/lib64/libsundials_sunlinsolsptfqmr.so.2.1.0
/usr/lib64/libsundials_sunmatrixband.so.2
/usr/lib64/libsundials_sunmatrixband.so.2.1.0
/usr/lib64/libsundials_sunmatrixdense.so.2
/usr/lib64/libsundials_sunmatrixdense.so.2.1.0
/usr/lib64/libsundials_sunmatrixsparse.so.2
/usr/lib64/libsundials_sunmatrixsparse.so.2.1.0
/usr/lib64/libsundials_sunnonlinsolfixedpoint.so.1
/usr/lib64/libsundials_sunnonlinsolfixedpoint.so.1.1.0
/usr/lib64/libsundials_sunnonlinsolnewton.so.1
/usr/lib64/libsundials_sunnonlinsolnewton.so.1.1.0
/usr/share/doc/sundials
/usr/share/doc/sundials/NOTICE
/usr/share/doc/sundials/README-arkode
/usr/share/doc/sundials/README-cvode
/usr/share/doc/sundials/README-cvodes
/usr/share/doc/sundials/README-ida
/usr/share/doc/sundials/README-kinsol
/usr/share/doc/sundials/README.idas
/usr/share/doc/sundials/README.md
/usr/share/licenses/sundials
/usr/share/licenses/sundials/LICENSE

References

Summary

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