How To Install opensc on Fedora 34

opensc is Smart card library and applications Smart card library and applications

Introduction

In this tutorial we learn how to install opensc on Fedora 34.

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. opensc 0.21.0 4.fc34 x86_64 1.2 M opensc-0.21.0-4.fc34.src.rpm fedora Smart card library and applications https LGPLv2+ 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install opensc.

Install opensc on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install opensc using dnf by running the following command:

sudo dnf -y install opensc

Install opensc on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 Fedora 34

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

sudo dnf remove opensc

opensc Package Contents on Fedora 34

/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-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/0d
/usr/lib/.build-id/0d/b6c6c85848b7786f14ba29129bfc1503249c97
/usr/lib/.build-id/19
/usr/lib/.build-id/19/01c9305b9028a24cb13d4d98b55c7fcd41feb6
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/f452d08beedcaf4d1e867677aca1d0870f595f
/usr/lib/.build-id/27
/usr/lib/.build-id/27/ae6b01b575be66a2d56c80b4f5281d55b8d884
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/564f4e0b8d054683d1e06a892eb0fad5b514ea
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/037f5a8de76673f8c69a366e8cb80c838e008e
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/f2999ecd3fe03211d633358baf590d85e182e1
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/a7dc6f4fe2d517c6b5fdd43724c58e8f4fb202
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/0a25656b6b50a99c0be6014c0a2b64c67d879f
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/5ff34a3eca781a74c82460316a239b55d0773c
/usr/lib/.build-id/5d
/usr/lib/.build-id/5d/90c6859867f600a8d2406bf3d242a2b7efe6d0
/usr/lib/.build-id/66
/usr/lib/.build-id/66/e89902140af0ad7856a6aa7b4f2ab107daefdc
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/5c40b0197daa3a54c6b45861d4b3ba4910d661
/usr/lib/.build-id/71
/usr/lib/.build-id/71/7aa61a5551bccde79fbe6da903934b21ad9e56
/usr/lib/.build-id/82
/usr/lib/.build-id/82/da7da9bcf3a7cc4204f7399354645ab3ea1913
/usr/lib/.build-id/96
/usr/lib/.build-id/96/5db75e18d147f0b6e97bbce351b98a68e96e8b
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/341938ac742869f640bf8981b84a2769cbee4d
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/85a80e806095bee1c4cbcf814e2a78c9894368
/usr/lib/.build-id/bf
/usr/lib/.build-id/bf/c7ef915c6d4845529f96d7ca3e67d9cc1ca553
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/1873060e908a6ccd7e6a95a4ec3118ee14da42
/usr/lib/.build-id/d4
/usr/lib/.build-id/d4/7704c49ce34d1e79753a1b1527b593d6da6415
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/a5eb42dbf3913b514f3b95b0fb5a652ebb5bde
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/ddef3939a3a17502b3d6de7675eaa9e3bd27b2
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/cb284dc4c128260969179e69ac0925756fc745
/usr/lib/.build-id/f8
/usr/lib/.build-id/f8/15a40f693e68ab9c770b330655a84d0913c000
/usr/lib/libopensc.so.7
/usr/lib/libopensc.so.7.0.0
/usr/lib/libsmm-local.so.7
/usr/lib/libsmm-local.so.7.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/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/goid-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-register
/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/goid-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-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
/usr/share/p11-kit/modules
/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-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/07
/usr/lib/.build-id/07/e12dbf683042c805fce46cc2e7a4a4f8d4b0a9
/usr/lib/.build-id/15
/usr/lib/.build-id/15/e026291c3844b5cbe64a4379695a6289b663c1
/usr/lib/.build-id/23
/usr/lib/.build-id/23/b06c2d54ba4aa4c201349e94f14f1b270e9440
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/3a22a2ab988f8b45953216e8f47b088ebb349e
/usr/lib/.build-id/41
/usr/lib/.build-id/41/216a99b0da607f845a1dcac774ff7647e459d0
/usr/lib/.build-id/49
/usr/lib/.build-id/49/165bc86106ff1dae8bc5dc164de9fdec2d5f5f
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/0a7ee968fd08cd2b79ddae8d163030e177c81e
/usr/lib/.build-id/67
/usr/lib/.build-id/67/a353fce936de9d42cad91e8ef57ee6be2fe3d6
/usr/lib/.build-id/6b
/usr/lib/.build-id/6b/74f51cf1be8d56e050d66cf3706833ef3110aa
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/1e7e2e8ac6d4e72d18f4082d97fddf5b97c7c6
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/03b44b45f701094a6b65c00441cad9c63c1240
/usr/lib/.build-id/79
/usr/lib/.build-id/79/1e5d0203b29ba871b6a60543204747aa89e8b5
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/f06199bed6d67002817921422a74416a93cbfe
/usr/lib/.build-id/83
/usr/lib/.build-id/83/03d506a9075f69a9b1e3b52fc133e96e2f6361
/usr/lib/.build-id/92
/usr/lib/.build-id/92/b60e5ef7d909fceb53866d70a814e645a9b298
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/b80d98ed9b078d270d958f80a4f0a89fa92e85
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/7d26770c01096222e843aebd446fdcee1ec11d
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/a6aa2edc638d4c1ed596cd11a08e03e4d8467d
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/7f4538ba2f9c7adbf778635095297303d03481
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/3569c368b2231996abcfe383c5b2767fec4b64
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/a2b25be408572380cb0258c8eed23a3a3612d5
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/115b040e8b87c6cf4208c73dc60f017fa811a4
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/2c1a80e5da3c79a5a19dd48b570ac9f48828d7
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/b5121b3e6e2e1ceb318baa9e8348b63e5c503c
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/e0dc47740d7fe09b22ffb5564b6451de643874
/usr/lib64/libopensc.so.7
/usr/lib64/libopensc.so.7.0.0
/usr/lib64/libsmm-local.so.7
/usr/lib64/libsmm-local.so.7.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/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/goid-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-register
/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/goid-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-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
/usr/share/p11-kit/modules
/usr/share/p11-kit/modules/opensc.module

References

Summary

In this tutorial we learn how to install opensc on Fedora 34 using yum and dnf.