How To Install crypto-policies-scripts on CentOS 8

crypto-policies-scripts is Tool to switch between crypto policies

Introduction

In this tutorial we learn how to install crypto-policies-scripts on CentOS 8.

What is crypto-policies-scripts

This package provides a tool update-crypto-policies, which applies the policies provided by the crypto-policies package. These can be either the pre-built policies from the base package or custom policies defined in simple policy definition files. The package also provides a tool fips-mode-setup, which can be used to enable or disable the system FIPS mode.

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

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

sudo dnf -y install crypto-policies-scripts

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

sudo yum -y install crypto-policies-scripts

How To Uninstall crypto-policies-scripts on CentOS 8

To uninstall only the crypto-policies-scripts package we can use the following command:

sudo dnf remove crypto-policies-scripts

crypto-policies-scripts Package Contents on CentOS 8

/usr/bin/fips-finish-install
/usr/bin/fips-mode-setup
/usr/bin/update-crypto-policies
/usr/share/crypto-policies/python
/usr/share/crypto-policies/python/__pycache__
/usr/share/crypto-policies/python/__pycache__/build-crypto-policies.cpython-36.opt-1.pyc
/usr/share/crypto-policies/python/__pycache__/build-crypto-policies.cpython-36.pyc
/usr/share/crypto-policies/python/__pycache__/update-crypto-policies.cpython-36.opt-1.pyc
/usr/share/crypto-policies/python/__pycache__/update-crypto-policies.cpython-36.pyc
/usr/share/crypto-policies/python/build-crypto-policies.py
/usr/share/crypto-policies/python/cryptopolicies
/usr/share/crypto-policies/python/cryptopolicies/__init__.py
/usr/share/crypto-policies/python/cryptopolicies/__pycache__
/usr/share/crypto-policies/python/cryptopolicies/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/share/crypto-policies/python/cryptopolicies/__pycache__/__init__.cpython-36.pyc
/usr/share/crypto-policies/python/cryptopolicies/__pycache__/cryptopolicies.cpython-36.opt-1.pyc
/usr/share/crypto-policies/python/cryptopolicies/__pycache__/cryptopolicies.cpython-36.pyc
/usr/share/crypto-policies/python/cryptopolicies/cryptopolicies.py
/usr/share/crypto-policies/python/policygenerators
/usr/share/crypto-policies/python/policygenerators/__init__.py
/usr/share/crypto-policies/python/policygenerators/__pycache__
/usr/share/crypto-policies/python/policygenerators/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/__init__.cpython-36.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/bind.cpython-36.opt-1.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/bind.cpython-36.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/configgenerator.cpython-36.opt-1.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/configgenerator.cpython-36.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/gnutls.cpython-36.opt-1.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/gnutls.cpython-36.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/java.cpython-36.opt-1.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/java.cpython-36.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/krb5.cpython-36.opt-1.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/krb5.cpython-36.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/libreswan.cpython-36.opt-1.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/libreswan.cpython-36.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/libssh.cpython-36.opt-1.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/libssh.cpython-36.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/nss.cpython-36.opt-1.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/nss.cpython-36.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/openssh.cpython-36.opt-1.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/openssh.cpython-36.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/openssl.cpython-36.opt-1.pyc
/usr/share/crypto-policies/python/policygenerators/__pycache__/openssl.cpython-36.pyc
/usr/share/crypto-policies/python/policygenerators/bind.py
/usr/share/crypto-policies/python/policygenerators/configgenerator.py
/usr/share/crypto-policies/python/policygenerators/gnutls.py
/usr/share/crypto-policies/python/policygenerators/java.py
/usr/share/crypto-policies/python/policygenerators/krb5.py
/usr/share/crypto-policies/python/policygenerators/libreswan.py
/usr/share/crypto-policies/python/policygenerators/libssh.py
/usr/share/crypto-policies/python/policygenerators/nss.py
/usr/share/crypto-policies/python/policygenerators/openssh.py
/usr/share/crypto-policies/python/policygenerators/openssl.py
/usr/share/crypto-policies/python/update-crypto-policies.py
/usr/share/man/man8/fips-finish-install.8.gz
/usr/share/man/man8/fips-mode-setup.8.gz
/usr/share/man/man8/update-crypto-policies.8.gz

References

Summary

In this tutorial we learn how to install crypto-policies-scripts on CentOS 8 using yum and dnf.