How To Install nss on CentOS 8
Introduction
In this tutorial we learn how to install nss
on CentOS 8.
What is nss
Network Security Services (NSS) is a set of libraries designed to support cross-platform development of security-enabled client and server applications. Applications built with NSS can support SSL v2 and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3 certificates, and other security standards. nss 3.53.1 17.el8_3 x86_64 723 k nss-3.53.1-17.el8_3.src.rpm appstream Network Security Services http MPLv2.0 Network Security Services (NSS) is a set of libraries designed to support cross-platform development of security-enabled client and server applications. Applications built with NSS can support SSL v2 and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3 certificates, and other security standards.
We can use yum
or dnf
to install nss
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install nss.
Install nss 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 nss
using dnf
by running the following command:
sudo dnf -y install nss
Install nss 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 nss
using yum
by running the following command:
sudo yum -y install nss
How To Uninstall nss on CentOS 8
To uninstall only the nss
package we can use the following command:
sudo dnf remove nss
nss Package Contents on CentOS 8
/etc/crypto-policies/local.d/nss-p11-kit.config
/etc/pki/nssdb
/etc/pki/nssdb/cert8.db
/etc/pki/nssdb/cert9.db
/etc/pki/nssdb/key3.db
/etc/pki/nssdb/key4.db
/etc/pki/nssdb/pkcs11.txt
/etc/pki/nssdb/secmod.db
/usr/lib/.build-id
/usr/lib/.build-id/13
/usr/lib/.build-id/13/685b7c8f1e9006efae917004a2d6b8ac611c8b
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/315fb9d32805e11604313eed82f799d516a9c2
/usr/lib/.build-id/97
/usr/lib/.build-id/97/0392f832782962fcec0cb732016dcf71289c44
/usr/lib64/libnss3.so
/usr/lib64/libsmime3.so
/usr/lib64/libssl3.so
/usr/share/licenses/nss
/usr/share/licenses/nss/COPYING
/usr/share/man/man5/cert8.db.5.gz
/usr/share/man/man5/cert9.db.5.gz
/usr/share/man/man5/key3.db.5.gz
/usr/share/man/man5/key4.db.5.gz
/usr/share/man/man5/pkcs11.txt.5.gz
/usr/share/man/man5/secmod.db.5.gz
/etc/crypto-policies/local.d/nss-p11-kit.config
/etc/pki/nssdb
/etc/pki/nssdb/cert8.db
/etc/pki/nssdb/cert9.db
/etc/pki/nssdb/key3.db
/etc/pki/nssdb/key4.db
/etc/pki/nssdb/pkcs11.txt
/etc/pki/nssdb/secmod.db
/usr/lib/.build-id
/usr/lib/.build-id/40
/usr/lib/.build-id/40/034a4c934bb71e101e0720777c4f9851847234
/usr/lib/.build-id/c7
/usr/lib/.build-id/c7/57bcdb75d781678bf1454a13dd542a3e2b7362
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/e85d387c2d01cc62ddd18d89de9595f3222334
/usr/lib/libnss3.so
/usr/lib/libsmime3.so
/usr/lib/libssl3.so
/usr/share/licenses/nss
/usr/share/licenses/nss/COPYING
/usr/share/man/man5/cert8.db.5.gz
/usr/share/man/man5/cert9.db.5.gz
/usr/share/man/man5/key3.db.5.gz
/usr/share/man/man5/key4.db.5.gz
/usr/share/man/man5/pkcs11.txt.5.gz
/usr/share/man/man5/secmod.db.5.gz
References
- [nss website](http://www.mozilla.org/projects/security/pki/nss/ http://www.mozilla.org/projects/security/pki/nss/)
Summary
In this tutorial we learn how to install nss
on CentOS 8 using yum and dnf.