How To Install opensc on Rocky Linux 8
Introduction
In this tutorial we learn how to install opensc
on Rocky Linux 8.
What is opensc
OpenSC provides a set of libraries and utilities to work with smart cards. Its main focus is on cards that support cryptographic operations, and facilitate their use in security applications such as authentication, mail encryption and digital signatures. OpenSC implements the PKCS#11 API so applications supporting this API (such as Mozilla Firefox and Thunderbird) can use it. On the card OpenSC implements the PKCS#15 standard and aims to be compatible with every software/card that does so, too.
We can use yum
or dnf
to install opensc
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install opensc.
Install opensc on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install opensc
using dnf
by running the following command:
sudo dnf -y install opensc
Install opensc on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install opensc
using yum
by running the following command:
sudo yum -y install opensc
How To Uninstall opensc on Rocky Linux 8
To uninstall only the opensc
package we can use the following command:
sudo dnf remove opensc
opensc Package Contents on Rocky Linux 8
/etc/opensc-i386.conf
/usr/bin/cardos-tool
/usr/bin/cryptoflex-tool
/usr/bin/dnie-tool
/usr/bin/egk-tool
/usr/bin/eidenv
/usr/bin/gids-tool
/usr/bin/goid-tool
/usr/bin/iasecc-tool
/usr/bin/netkey-tool
/usr/bin/openpgp-tool
/usr/bin/opensc-asn1
/usr/bin/opensc-explorer
/usr/bin/opensc-notify
/usr/bin/opensc-tool
/usr/bin/piv-tool
/usr/bin/pkcs11-tool
/usr/bin/pkcs15-crypt
/usr/bin/pkcs15-init
/usr/bin/pkcs15-tool
/usr/bin/sc-hsm-tool
/usr/bin/westcos-tool
/usr/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/58a2b1e482170dcd6cb6d9c67fffd03401c167
/usr/lib/.build-id/0b
/usr/lib/.build-id/0b/5eb88954206d17c4e507b76207f7e2e9347f4a
/usr/lib/.build-id/12
/usr/lib/.build-id/12/2a3414c0d27f4d7871b96765d887850606555c
/usr/lib/.build-id/24
/usr/lib/.build-id/24/89ded4ad47daf2cc86bf15d30ff7dd3fa98271
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/e1d89c81883b89bfc9133e287923da008c8a5d
/usr/lib/.build-id/38
/usr/lib/.build-id/38/4439f94b5472df540e216205aa6aec397aecff
/usr/lib/.build-id/40
/usr/lib/.build-id/40/734d7f3bc33fc7a2eb4b7efa4f7bf3b648593f
/usr/lib/.build-id/44
/usr/lib/.build-id/44/bc41ea77121c15ecb13f4c83eb6f516b07ec8c
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/c1623d8a8136196ea80017672d1468873180b0
/usr/lib/.build-id/50
/usr/lib/.build-id/50/bd2969d7c104277a4452deca8483175cfc8e70
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/25fc11bd9ca074529be611fbc051ebf0ab4a48
/usr/lib/.build-id/69
/usr/lib/.build-id/69/30c800794bea0089d8fcfacded902b4be59c63
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/e9bc02c04f54db70e62401fa70e78e53f2e17f
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/c78c924a66e0eb83471c6484d8c2faba8a9a6a
/usr/lib/.build-id/7c/ff13e956f80d2c9320e0d1c09040d0d21215af
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/02b276949aa2b9e6d0bde202de3fd7d95af9a0
/usr/lib/.build-id/8a/8ba737089268cf2c80d63ea2795b5ca41fbbdc
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/42e948efc9a33c41776cd42a17b797e2f5615e
/usr/lib/.build-id/af
/usr/lib/.build-id/af/af7a579eb7130c9f1eb5c3ff20ad68c1c0407f
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/da7d3a6221be10be7eae28f4445f92fbd9ab5f
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/945a25c7e2af488f60b2fe9dc80320625405b0
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/917fa7c9741100daf5897e4ac30891b3f73846
/usr/lib/.build-id/da
/usr/lib/.build-id/da/514e10e9eeb7f973e1032966909809eca319fd
/usr/lib/.build-id/de
/usr/lib/.build-id/de/5da173ae5d3dfbff6fab38a68f0bf41faa677e
/usr/lib/.build-id/f8
/usr/lib/.build-id/f8/aba481b7de6c3d94942c113690ca0f4f0f7e5d
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/26c57a0103303fa707cf059b477a0d412b5919
/usr/lib/libopensc.so.6
/usr/lib/libopensc.so.6.0.0
/usr/lib/libsmm-local.so.6
/usr/lib/libsmm-local.so.6.0.0
/usr/lib/onepin-opensc-pkcs11.so
/usr/lib/opensc-pkcs11.so
/usr/lib/pkcs11
/usr/lib/pkcs11-spy.so
/usr/lib/pkcs11/onepin-opensc-pkcs11.so
/usr/lib/pkcs11/opensc-pkcs11.so
/usr/lib/pkcs11/pkcs11-spy.so
/usr/lib/pkgconfig/opensc-pkcs11.pc
/usr/share/applications/org.opensc.notify.desktop
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/cardos-tool
/usr/share/bash-completion/completions/cryptoflex-tool
/usr/share/bash-completion/completions/dnie-tool
/usr/share/bash-completion/completions/egk-tool
/usr/share/bash-completion/completions/eidenv
/usr/share/bash-completion/completions/gids-tool
/usr/share/bash-completion/completions/iasecc-tool
/usr/share/bash-completion/completions/netkey-tool
/usr/share/bash-completion/completions/npa-tool
/usr/share/bash-completion/completions/openpgp-tool
/usr/share/bash-completion/completions/opensc-asn1
/usr/share/bash-completion/completions/opensc-explorer
/usr/share/bash-completion/completions/opensc-notify
/usr/share/bash-completion/completions/opensc-tool
/usr/share/bash-completion/completions/piv-tool
/usr/share/bash-completion/completions/pkcs11-tool
/usr/share/bash-completion/completions/pkcs15-crypt
/usr/share/bash-completion/completions/pkcs15-init
/usr/share/bash-completion/completions/pkcs15-tool
/usr/share/bash-completion/completions/sc-hsm-tool
/usr/share/bash-completion/completions/westcos-tool
/usr/share/doc/opensc
/usr/share/doc/opensc/COPYING
/usr/share/doc/opensc/NEWS
/usr/share/doc/opensc/README
/usr/share/doc/opensc/README.pkcs15init
/usr/share/doc/opensc/README.scconf
/usr/share/man/man1/cardos-tool.1.gz
/usr/share/man/man1/cryptoflex-tool.1.gz
/usr/share/man/man1/dnie-tool.1.gz
/usr/share/man/man1/egk-tool.1.gz
/usr/share/man/man1/eidenv.1.gz
/usr/share/man/man1/gids-tool.1.gz
/usr/share/man/man1/iasecc-tool.1.gz
/usr/share/man/man1/netkey-tool.1.gz
/usr/share/man/man1/openpgp-tool.1.gz
/usr/share/man/man1/opensc-asn1.1.gz
/usr/share/man/man1/opensc-explorer.1.gz
/usr/share/man/man1/opensc-notify.1.gz
/usr/share/man/man1/opensc-tool.1.gz
/usr/share/man/man1/piv-tool.1.gz
/usr/share/man/man1/pkcs11-tool.1.gz
/usr/share/man/man1/pkcs15-crypt.1.gz
/usr/share/man/man1/pkcs15-init.1.gz
/usr/share/man/man1/pkcs15-tool.1.gz
/usr/share/man/man1/sc-hsm-tool.1.gz
/usr/share/man/man1/westcos-tool.1.gz
/usr/share/man/man5/opensc-i386.conf.5.gz
/usr/share/man/man5/pkcs15-profile.5.gz
/usr/share/opensc
/usr/share/opensc/asepcos.profile
/usr/share/opensc/authentic.profile
/usr/share/opensc/cardos.profile
/usr/share/opensc/cyberflex.profile
/usr/share/opensc/entersafe.profile
/usr/share/opensc/epass2003.profile
/usr/share/opensc/flex.profile
/usr/share/opensc/gids.profile
/usr/share/opensc/gpk.profile
/usr/share/opensc/ias_adele_admin1.profile
/usr/share/opensc/ias_adele_admin2.profile
/usr/share/opensc/ias_adele_common.profile
/usr/share/opensc/iasecc.profile
/usr/share/opensc/iasecc_admin_eid.profile
/usr/share/opensc/iasecc_generic_oberthur.profile
/usr/share/opensc/iasecc_generic_pki.profile
/usr/share/opensc/incrypto34.profile
/usr/share/opensc/isoApplet.profile
/usr/share/opensc/jcop.profile
/usr/share/opensc/miocos.profile
/usr/share/opensc/muscle.profile
/usr/share/opensc/myeid.profile
/usr/share/opensc/oberthur.profile
/usr/share/opensc/openpgp.profile
/usr/share/opensc/pkcs15.profile
/usr/share/opensc/rutoken.profile
/usr/share/opensc/rutoken_ecp.profile
/usr/share/opensc/rutoken_lite.profile
/usr/share/opensc/sc-hsm.profile
/usr/share/opensc/setcos.profile
/usr/share/opensc/starcos.profile
/usr/share/opensc/westcos.profile
/usr/share/p11-kit/modules/opensc.module
/etc/opensc-x86_64.conf
/etc/opensc.conf
/usr/bin/cardos-tool
/usr/bin/cryptoflex-tool
/usr/bin/dnie-tool
/usr/bin/egk-tool
/usr/bin/eidenv
/usr/bin/gids-tool
/usr/bin/goid-tool
/usr/bin/iasecc-tool
/usr/bin/netkey-tool
/usr/bin/openpgp-tool
/usr/bin/opensc-asn1
/usr/bin/opensc-explorer
/usr/bin/opensc-notify
/usr/bin/opensc-tool
/usr/bin/piv-tool
/usr/bin/pkcs11-tool
/usr/bin/pkcs15-crypt
/usr/bin/pkcs15-init
/usr/bin/pkcs15-tool
/usr/bin/sc-hsm-tool
/usr/bin/westcos-tool
/usr/lib/.build-id
/usr/lib/.build-id/0b
/usr/lib/.build-id/0b/0edd4f12278f3b16685cdf6cd37ab1dfab1054
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/54eb3334385579ca21169cf131da7e19238e03
/usr/lib/.build-id/10
/usr/lib/.build-id/10/3219717138714a1711189ab5a738430f903e67
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/0ae8873dd92af16833ad484a71005e17b22e06
/usr/lib/.build-id/30
/usr/lib/.build-id/30/65cf094715c1cfcec555e77c47dcf111b953ec
/usr/lib/.build-id/47
/usr/lib/.build-id/47/5bdd1b687a3b6e5ce8efccf88aab7ac1041e92
/usr/lib/.build-id/4c
/usr/lib/.build-id/4c/76c16b21a07cdc4012369acdf08051924ad557
/usr/lib/.build-id/52
/usr/lib/.build-id/52/805533b94184e404e62953146403018e3fbc81
/usr/lib/.build-id/55
/usr/lib/.build-id/55/c1715a7bd6bcdc3b7a3269dbd31f2f47d0a431
/usr/lib/.build-id/58
/usr/lib/.build-id/58/eb55100d81f070cf4edc1da14ff2499ce56f4b
/usr/lib/.build-id/64
/usr/lib/.build-id/64/9528c1aa7b9d60e17741004d3ae08c535b33fd
/usr/lib/.build-id/76
/usr/lib/.build-id/76/5c7cb36164e265c23a2b8430f412b9e9b72d46
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/60b201d40340471a19a03e4d67abd9c4e45bcf
/usr/lib/.build-id/82
/usr/lib/.build-id/82/284eaa50a3b942c510bb07d58915ab8bbbfc05
/usr/lib/.build-id/85
/usr/lib/.build-id/85/aec60fd30e2372c005fd183b2f96f662a9f7ed
/usr/lib/.build-id/94
/usr/lib/.build-id/94/db4b06b83092c74e4ab3268814bb4cceb1f5ff
/usr/lib/.build-id/98
/usr/lib/.build-id/98/a72b43bd79fd44e9467719ee2e93cfb30f8985
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/6fdd851d2b9b8e1c6c218db8514551b08be4ca
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/1d487b3e5e6264b190ddb7ef39e76228b0e6f8
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/f8b7a4e864949aa6d90d5aaf0bad941dd91eb6
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/640d20bf7e9de1d84eeec8dc4a905eb2015bee
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/ea0ca4064fbe66f446496eb923a03dd6e6c8c9
/usr/lib/.build-id/f1
/usr/lib/.build-id/f1/0081159fa6a4bf92515f0f6ca1c0e463dc27e3
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/f79896c54d96c5af2a235cc80f91c21119f353
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/485013cdc01bb021916ac1c0a344820ee4382a
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/b27cd5923294ffba0af764aa118de26d393b35
/usr/lib64/libopensc.so.6
/usr/lib64/libopensc.so.6.0.0
/usr/lib64/libsmm-local.so.6
/usr/lib64/libsmm-local.so.6.0.0
/usr/lib64/onepin-opensc-pkcs11.so
/usr/lib64/opensc-pkcs11.so
/usr/lib64/pkcs11
/usr/lib64/pkcs11-spy.so
/usr/lib64/pkcs11/onepin-opensc-pkcs11.so
/usr/lib64/pkcs11/opensc-pkcs11.so
/usr/lib64/pkcs11/pkcs11-spy.so
/usr/lib64/pkgconfig/opensc-pkcs11.pc
/usr/share/applications/org.opensc.notify.desktop
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/cardos-tool
/usr/share/bash-completion/completions/cryptoflex-tool
/usr/share/bash-completion/completions/dnie-tool
/usr/share/bash-completion/completions/egk-tool
/usr/share/bash-completion/completions/eidenv
/usr/share/bash-completion/completions/gids-tool
/usr/share/bash-completion/completions/iasecc-tool
/usr/share/bash-completion/completions/netkey-tool
/usr/share/bash-completion/completions/npa-tool
/usr/share/bash-completion/completions/openpgp-tool
/usr/share/bash-completion/completions/opensc-asn1
/usr/share/bash-completion/completions/opensc-explorer
/usr/share/bash-completion/completions/opensc-notify
/usr/share/bash-completion/completions/opensc-tool
/usr/share/bash-completion/completions/piv-tool
/usr/share/bash-completion/completions/pkcs11-tool
/usr/share/bash-completion/completions/pkcs15-crypt
/usr/share/bash-completion/completions/pkcs15-init
/usr/share/bash-completion/completions/pkcs15-tool
/usr/share/bash-completion/completions/sc-hsm-tool
/usr/share/bash-completion/completions/westcos-tool
/usr/share/doc/opensc
/usr/share/doc/opensc/COPYING
/usr/share/doc/opensc/NEWS
/usr/share/doc/opensc/README
/usr/share/doc/opensc/README.pkcs15init
/usr/share/doc/opensc/README.scconf
/usr/share/man/man1/cardos-tool.1.gz
/usr/share/man/man1/cryptoflex-tool.1.gz
/usr/share/man/man1/dnie-tool.1.gz
/usr/share/man/man1/egk-tool.1.gz
/usr/share/man/man1/eidenv.1.gz
/usr/share/man/man1/gids-tool.1.gz
/usr/share/man/man1/iasecc-tool.1.gz
/usr/share/man/man1/netkey-tool.1.gz
/usr/share/man/man1/openpgp-tool.1.gz
/usr/share/man/man1/opensc-asn1.1.gz
/usr/share/man/man1/opensc-explorer.1.gz
/usr/share/man/man1/opensc-notify.1.gz
/usr/share/man/man1/opensc-tool.1.gz
/usr/share/man/man1/piv-tool.1.gz
/usr/share/man/man1/pkcs11-tool.1.gz
/usr/share/man/man1/pkcs15-crypt.1.gz
/usr/share/man/man1/pkcs15-init.1.gz
/usr/share/man/man1/pkcs15-tool.1.gz
/usr/share/man/man1/sc-hsm-tool.1.gz
/usr/share/man/man1/westcos-tool.1.gz
/usr/share/man/man5/opensc.conf.5.gz
/usr/share/man/man5/pkcs15-profile.5.gz
/usr/share/opensc
/usr/share/opensc/asepcos.profile
/usr/share/opensc/authentic.profile
/usr/share/opensc/cardos.profile
/usr/share/opensc/cyberflex.profile
/usr/share/opensc/entersafe.profile
/usr/share/opensc/epass2003.profile
/usr/share/opensc/flex.profile
/usr/share/opensc/gids.profile
/usr/share/opensc/gpk.profile
/usr/share/opensc/ias_adele_admin1.profile
/usr/share/opensc/ias_adele_admin2.profile
/usr/share/opensc/ias_adele_common.profile
/usr/share/opensc/iasecc.profile
/usr/share/opensc/iasecc_admin_eid.profile
/usr/share/opensc/iasecc_generic_oberthur.profile
/usr/share/opensc/iasecc_generic_pki.profile
/usr/share/opensc/incrypto34.profile
/usr/share/opensc/isoApplet.profile
/usr/share/opensc/jcop.profile
/usr/share/opensc/miocos.profile
/usr/share/opensc/muscle.profile
/usr/share/opensc/myeid.profile
/usr/share/opensc/oberthur.profile
/usr/share/opensc/openpgp.profile
/usr/share/opensc/pkcs15.profile
/usr/share/opensc/rutoken.profile
/usr/share/opensc/rutoken_ecp.profile
/usr/share/opensc/rutoken_lite.profile
/usr/share/opensc/sc-hsm.profile
/usr/share/opensc/setcos.profile
/usr/share/opensc/starcos.profile
/usr/share/opensc/westcos.profile
/usr/share/p11-kit/modules/opensc.module
References
Summary
In this tutorial we learn how to install opensc
on Rocky Linux 8 using yum and dnf.