How to Install and uninstall cfitsio on CentOS 8 server

How to Install and uninstall cfitsio on CentOS 8 server

 

CFITSIO is a library of ANSI C routines for reading and writing FITS format data files. Follow the below steps to install cfitsio on CentOS 8 server.
 

Step 1 : Log into CentOS 8 server as ‘root’ user

Steps 2 : Run the command ‘yum install epel-release -y’ to install EPEL repository

 

[root@server /]# yum install epel-release -y

===================================================================================================
Package Architecture Version Repository Size
===================================================================================================
Installing:
epel-release noarch 8-8.el8 extras 23 k

Transaction Summary
===================================================================================================
Install 1 Package

Total download size: 23 k
Installed size: 32 k
Is this ok [y/N]:y

 

Steps 4 : Run ‘yum install cfitsio’ to install cfitsio package

 

# yum install cfitsio

 

Steps 5 : Enter ‘y’ and press enter if yum ask for confirmation while installing the package

 
 

How to download and install cfitsio rpm on CentOS 8 server

 

Step 1 : Log into CentOS 8 server as ‘root’ user

Steps 2 : Download cfitsio package from fedoraproject website using wget command

 

wget https://download-ib01.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/c/cfitsio-3.47-1.el8.x86_64.rpm

Saving to: ‘cfitsio-3.47-1.el8.x86_64.rpm’

cfitsio-3.47-1.el8.x86_6 100%[=================================>] 577.05K 128KB/s in 4.5s

2020-11-14 15:21:22 (128 KB/s) – ‘cfitsio-3.47-1.el8.x86_64.rpm’ saved [590904/590904]

 

Step 3 : Install cfitsio package using rpm command

 

[root@linux /]# rpm -Uvh cfitsio-3.47-1.el8.x86_64.rpm
Verifying… ################################# [100%]
Preparing… ################################# [100%]
package cfitsio-3.47-1.el8.x86_64 is already installed

 

Step 4 : Run the command ‘cat /usr/share/doc/cfitsio/README’ to view the readme file

 
 

How to uninstall/Remove cfitsio package on CentOS 8 server

 

Steps 1 : Log into CentOS 8 server via ssh as ‘root’ user

Steps 2 : Run the command ‘yum remove cfitsio’ to remove the package

 

[root@linux /]# yum remove cfitsio

Dependencies resolved.
===================================================================================================
Package Architecture Version Repository Size
===================================================================================================
Removing:
cfitsio x86_64 3.47-1.el8 @epel 1.7 M
Removing dependent packages:
CCfits x86_64 2.5-14.el8 @@System 831 k

Transaction Summary
===================================================================================================
Remove 2 Packages

Freed space: 2.5 M
Is this ok [y/N]: y