How To Install dpdk on CentOS 8

dpdk is Set of libraries and drivers for fast packet processing

Introduction

In this tutorial we learn how to install dpdk on CentOS 8.

What is dpdk

The Data Plane Development Kit is a set of libraries and drivers for fast packet processing in the user space.

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

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

sudo dnf -y install dpdk

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

sudo yum -y install dpdk

How To Uninstall dpdk on CentOS 8

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

sudo dnf remove dpdk

dpdk Package Contents on CentOS 8

/usr/bin/dpdk-testpmd
/usr/lib/.build-id
/usr/lib/.build-id/03
/usr/lib/.build-id/03/30c05d7b5753ac322b2d80a7d03ecf55a87dbe
/usr/lib/.build-id/03/86fa5001fa9500c8f5d4142dbd0c24ed215bac
/usr/lib/.build-id/03/cd0129c6576280e3b1aa215cff40050677961f
/usr/lib/.build-id/05
/usr/lib/.build-id/05/08360b3b67ae486e9e171cff65537571e0409a
/usr/lib/.build-id/06
/usr/lib/.build-id/06/aa46b652f6c38c92c956cb8356ef00c9b649e5
/usr/lib/.build-id/09
/usr/lib/.build-id/09/3841ab77d367f0e06a19c8de84702660c4dc89
/usr/lib/.build-id/0c
/usr/lib/.build-id/0c/27ebd648bfcfe48be227475107c30754cc0288
/usr/lib/.build-id/11
/usr/lib/.build-id/11/d3f1127f15d460539eaa966931a68b9eace5cf
/usr/lib/.build-id/14
/usr/lib/.build-id/14/ff93be030901d694bbd70c35d09b13c90ad2be
/usr/lib/.build-id/17
/usr/lib/.build-id/17/fa780ca7f1e1d5e741c1cd614bcd24b2df915e
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/7955bde8c7d2d858b6626edb0e61231a4cd6c7
/usr/lib/.build-id/20
/usr/lib/.build-id/20/aa50d5c594e88b7deb6eba95be4838caf0b1c9
/usr/lib/.build-id/23
/usr/lib/.build-id/23/a670bf1cdf886d9d7209b230dffa1496a8ffa2
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/d4e556489c55fd3e9881c4acb0f032967d493a
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/1957696e1f01cb7be0ce2719cd33a9d230d5fc
/usr/lib/.build-id/32
/usr/lib/.build-id/32/1bf2b60a51331be003654e5509d444ac589c8f
/usr/lib/.build-id/37
/usr/lib/.build-id/37/43246cc9a0ae4e4c03cf67013c0ef80b05f24b
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/317caad3fb8fd2ff39d280df0eac9af9704342
/usr/lib/.build-id/40
/usr/lib/.build-id/40/d7936eb43a323a753ae46ab581a5cd0e40cbbd
/usr/lib/.build-id/48
/usr/lib/.build-id/48/86a83c4ccb799236ae690d07b990b24892d7af
/usr/lib/.build-id/49
/usr/lib/.build-id/49/58ae131f7dacaf5075559ad8ca8565df33d3ce
/usr/lib/.build-id/49/87c7d803ddf79cb7160561ff733500473d5f49
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/ae86e8b9fd668acf14ca65527a98ff2f79eb1d
/usr/lib/.build-id/4b
/usr/lib/.build-id/4b/55f940a9d093e82d4e32a8ca81b93786fa8ede
/usr/lib/.build-id/4b/dd7cb84509f147aa259072d388989e5b23857d
/usr/lib/.build-id/4c
/usr/lib/.build-id/4c/f63c8865b1e7f728487bbc48d38408236a4244
/usr/lib/.build-id/58
/usr/lib/.build-id/58/8688fc69bb650a86434b7afaed3326f852b1ae
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/115d6a9ae61e054063de7da982b3f1fa680bb2
/usr/lib/.build-id/5c/e9d81fb807e860e49020bc7f158f8538cc5947
/usr/lib/.build-id/63
/usr/lib/.build-id/63/0ae7379943a3757dd02d8dd28b6d4db9f9804d
/usr/lib/.build-id/64
/usr/lib/.build-id/64/488f754fbcc0299cdea70692ffa1b04bac740a
/usr/lib/.build-id/67
/usr/lib/.build-id/67/1fa84946a6ef123b08e200ad7ecc1e0d798120
/usr/lib/.build-id/6a
/usr/lib/.build-id/6a/c32b169bea67648f3ee3f1bcfeb764ed69e9c3
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/4459a25f27b810b603bbfd07c1b16d3655208d
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/516a6346159012f5e554b8fda157e51b7514e3
/usr/lib/.build-id/6e/aeb2db70b2d4d20e6ee3d7b23d00a3991a0d6d
/usr/lib/.build-id/75
/usr/lib/.build-id/75/e11a35d7e6c92d1656075920295e77685a6bc0
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/e665f47156486f8acae877f6a845e303ec8c9f
/usr/lib/.build-id/7d
/usr/lib/.build-id/7d/4bf853a0ab7e1f315f546deffe4610ff5bb28f
/usr/lib/.build-id/7d/581b7e7a7dfa274585af9903c23962e6887c86
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/87381113c064205c71bf30da99d8b402c2c674
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/b6f0960ee042898fbb87e25c8b8a7c7987ae60
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/0b0299a51e15d60ec29271be0ca38cb84f5fe0
/usr/lib/.build-id/90
/usr/lib/.build-id/90/218ffcb4a4d897bd7bcef0cb07e0c3b0aa3730
/usr/lib/.build-id/90/7ecce20e6ebeb9d468a3a58b126da44b1689bf
/usr/lib/.build-id/96
/usr/lib/.build-id/96/30bf5bff75fea57112da65987fb1865a5214a0
/usr/lib/.build-id/97
/usr/lib/.build-id/97/b468dad5c12fc27cbae0aaf8141e9b6dfeb230
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/fc1a2d1e2501b7590980f95ba4f19a3491ceee
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/c048c863abe18b32367e4aef1947b84af78a3e
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/376ba4f19f07bdfb6de446b2f5dc4dbf84a7df
/usr/lib/.build-id/a3
/usr/lib/.build-id/a3/b4e59d87119902d0b02433a5c10b7b19d5065e
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/244b48f6ae7cbda05470c843e35c18313a078d
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/990bef9db8ca20f1a3b6ccc582532e98577bc9
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/9e5d9cd04af2e1340f5dab6b6f031835782d1d
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/314d035291df272b30084eefa7ede501a42bc6
/usr/lib/.build-id/bc/98723696ecf9fb2826d37ff83672f7f92c9a87
/usr/lib/.build-id/bf
/usr/lib/.build-id/bf/6cd8e308441f756cf2a9f3d6fda0a76a74e3fa
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/7d8845b59875bbb7f63c7dbb293bedc7d615d5
/usr/lib/.build-id/c0/dec1af308fd43f7e916046bfa7ef58786295b0
/usr/lib/.build-id/c4
/usr/lib/.build-id/c4/26bb677e89c3fa2b32b26d3367837af93180d9
/usr/lib/.build-id/c5
/usr/lib/.build-id/c5/fa1612e53521d8c5cf1277aaf5c9a445632878
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/4e7b36a8af96b4063ff941a37c81b0367364fe
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/97302fd2365b29a1ca4fe651b0a983dba080b7
/usr/lib/.build-id/cb/d6fa573608058e601e8b51b665402a703a2616
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/3f9398401ca7d637ecd497b1494a37713d3569
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/aee17de8ed8a85d087ad6f1a6490e892d20e3d
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/fd646664684cb56b3e875e13edb1bfecbe24ca
/usr/lib/.build-id/de
/usr/lib/.build-id/de/8fec23a5b1db86ece97bf01fe09afd5efcfab5
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/019d3937a0dce91982d9d167e8d29ef226913d
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/d543d0674483308ccf0ff579af4717e7af08ef
/usr/lib/.build-id/e4/ea8c32ae8ec3dde84235870157fa60f565ae09
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/2db6fe8dcd02a677c4cf3939b1cee1ec255f50
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/3e3b0fc2d0b40b9a8cd44bd468906799c67dd9
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/e1ebe6d82a8ef7d375dc439f5fdb1609d27328
/usr/lib/.build-id/f8
/usr/lib/.build-id/f8/59d2498277b94506eb90fa9359bb34efa84eaf
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/0c8bd829b6cc9dbc2cbd9281dce1925776193b
/usr/lib64/dpdk-pmds
/usr/lib64/dpdk-pmds/librte_bus_pci.so.21
/usr/lib64/dpdk-pmds/librte_bus_pci.so.21.0
/usr/lib64/dpdk-pmds/librte_bus_vdev.so.21
/usr/lib64/dpdk-pmds/librte_bus_vdev.so.21.0
/usr/lib64/dpdk-pmds/librte_bus_vmbus.so.21
/usr/lib64/dpdk-pmds/librte_bus_vmbus.so.21.0
/usr/lib64/dpdk-pmds/librte_common_iavf.so.21
/usr/lib64/dpdk-pmds/librte_common_iavf.so.21.0
/usr/lib64/dpdk-pmds/librte_common_mlx5.so.21
/usr/lib64/dpdk-pmds/librte_common_mlx5.so.21.0
/usr/lib64/dpdk-pmds/librte_mempool_ring.so.21
/usr/lib64/dpdk-pmds/librte_mempool_ring.so.21.0
/usr/lib64/dpdk-pmds/librte_net_bnxt.so.21
/usr/lib64/dpdk-pmds/librte_net_bnxt.so.21.0
/usr/lib64/dpdk-pmds/librte_net_e1000.so.21
/usr/lib64/dpdk-pmds/librte_net_e1000.so.21.0
/usr/lib64/dpdk-pmds/librte_net_enic.so.21
/usr/lib64/dpdk-pmds/librte_net_enic.so.21.0
/usr/lib64/dpdk-pmds/librte_net_failsafe.so.21
/usr/lib64/dpdk-pmds/librte_net_failsafe.so.21.0
/usr/lib64/dpdk-pmds/librte_net_i40e.so.21
/usr/lib64/dpdk-pmds/librte_net_i40e.so.21.0
/usr/lib64/dpdk-pmds/librte_net_iavf.so.21
/usr/lib64/dpdk-pmds/librte_net_iavf.so.21.0
/usr/lib64/dpdk-pmds/librte_net_ice.so.21
/usr/lib64/dpdk-pmds/librte_net_ice.so.21.0
/usr/lib64/dpdk-pmds/librte_net_ixgbe.so.21
/usr/lib64/dpdk-pmds/librte_net_ixgbe.so.21.0
/usr/lib64/dpdk-pmds/librte_net_mlx4.so.21
/usr/lib64/dpdk-pmds/librte_net_mlx4.so.21.0
/usr/lib64/dpdk-pmds/librte_net_mlx5.so.21
/usr/lib64/dpdk-pmds/librte_net_mlx5.so.21.0
/usr/lib64/dpdk-pmds/librte_net_netvsc.so.21
/usr/lib64/dpdk-pmds/librte_net_netvsc.so.21.0
/usr/lib64/dpdk-pmds/librte_net_nfp.so.21
/usr/lib64/dpdk-pmds/librte_net_nfp.so.21.0
/usr/lib64/dpdk-pmds/librte_net_qede.so.21
/usr/lib64/dpdk-pmds/librte_net_qede.so.21.0
/usr/lib64/dpdk-pmds/librte_net_ring.so.21
/usr/lib64/dpdk-pmds/librte_net_ring.so.21.0
/usr/lib64/dpdk-pmds/librte_net_tap.so.21
/usr/lib64/dpdk-pmds/librte_net_tap.so.21.0
/usr/lib64/dpdk-pmds/librte_net_vdev_netvsc.so.21
/usr/lib64/dpdk-pmds/librte_net_vdev_netvsc.so.21.0
/usr/lib64/dpdk-pmds/librte_net_vhost.so.21
/usr/lib64/dpdk-pmds/librte_net_vhost.so.21.0
/usr/lib64/dpdk-pmds/librte_net_virtio.so.21
/usr/lib64/dpdk-pmds/librte_net_virtio.so.21.0
/usr/lib64/librte_acl.so.21
/usr/lib64/librte_acl.so.21.0
/usr/lib64/librte_bbdev.so.21
/usr/lib64/librte_bbdev.so.21.0
/usr/lib64/librte_bitratestats.so.21
/usr/lib64/librte_bitratestats.so.21.0
/usr/lib64/librte_bpf.so.21
/usr/lib64/librte_bpf.so.21.0
/usr/lib64/librte_bus_pci.so.21
/usr/lib64/librte_bus_pci.so.21.0
/usr/lib64/librte_bus_vdev.so.21
/usr/lib64/librte_bus_vdev.so.21.0
/usr/lib64/librte_bus_vmbus.so.21
/usr/lib64/librte_bus_vmbus.so.21.0
/usr/lib64/librte_cfgfile.so.21
/usr/lib64/librte_cfgfile.so.21.0
/usr/lib64/librte_cmdline.so.21
/usr/lib64/librte_cmdline.so.21.0
/usr/lib64/librte_common_iavf.so.21
/usr/lib64/librte_common_iavf.so.21.0
/usr/lib64/librte_common_mlx5.so.21
/usr/lib64/librte_common_mlx5.so.21.0
/usr/lib64/librte_compressdev.so.21
/usr/lib64/librte_compressdev.so.21.0
/usr/lib64/librte_cryptodev.so.21
/usr/lib64/librte_cryptodev.so.21.0
/usr/lib64/librte_distributor.so.21
/usr/lib64/librte_distributor.so.21.0
/usr/lib64/librte_eal.so.21
/usr/lib64/librte_eal.so.21.0
/usr/lib64/librte_efd.so.21
/usr/lib64/librte_efd.so.21.0
/usr/lib64/librte_ethdev.so.21
/usr/lib64/librte_ethdev.so.21.0
/usr/lib64/librte_eventdev.so.21
/usr/lib64/librte_eventdev.so.21.0
/usr/lib64/librte_fib.so.21
/usr/lib64/librte_fib.so.21.0
/usr/lib64/librte_flow_classify.so.21
/usr/lib64/librte_flow_classify.so.21.0
/usr/lib64/librte_graph.so.21
/usr/lib64/librte_graph.so.21.0
/usr/lib64/librte_gro.so.21
/usr/lib64/librte_gro.so.21.0
/usr/lib64/librte_gso.so.21
/usr/lib64/librte_gso.so.21.0
/usr/lib64/librte_hash.so.21
/usr/lib64/librte_hash.so.21.0
/usr/lib64/librte_ip_frag.so.21
/usr/lib64/librte_ip_frag.so.21.0
/usr/lib64/librte_ipsec.so.21
/usr/lib64/librte_ipsec.so.21.0
/usr/lib64/librte_jobstats.so.21
/usr/lib64/librte_jobstats.so.21.0
/usr/lib64/librte_kni.so.21
/usr/lib64/librte_kni.so.21.0
/usr/lib64/librte_kvargs.so.21
/usr/lib64/librte_kvargs.so.21.0
/usr/lib64/librte_latencystats.so.21
/usr/lib64/librte_latencystats.so.21.0
/usr/lib64/librte_lpm.so.21
/usr/lib64/librte_lpm.so.21.0
/usr/lib64/librte_mbuf.so.21
/usr/lib64/librte_mbuf.so.21.0
/usr/lib64/librte_member.so.21
/usr/lib64/librte_member.so.21.0
/usr/lib64/librte_mempool.so.21
/usr/lib64/librte_mempool.so.21.0
/usr/lib64/librte_mempool_ring.so.21
/usr/lib64/librte_mempool_ring.so.21.0
/usr/lib64/librte_meter.so.21
/usr/lib64/librte_meter.so.21.0
/usr/lib64/librte_metrics.so.21
/usr/lib64/librte_metrics.so.21.0
/usr/lib64/librte_net.so.21
/usr/lib64/librte_net.so.21.0
/usr/lib64/librte_net_bnxt.so.21
/usr/lib64/librte_net_bnxt.so.21.0
/usr/lib64/librte_net_e1000.so.21
/usr/lib64/librte_net_e1000.so.21.0
/usr/lib64/librte_net_enic.so.21
/usr/lib64/librte_net_enic.so.21.0
/usr/lib64/librte_net_failsafe.so.21
/usr/lib64/librte_net_failsafe.so.21.0
/usr/lib64/librte_net_i40e.so.21
/usr/lib64/librte_net_i40e.so.21.0
/usr/lib64/librte_net_iavf.so.21
/usr/lib64/librte_net_iavf.so.21.0
/usr/lib64/librte_net_ice.so.21
/usr/lib64/librte_net_ice.so.21.0
/usr/lib64/librte_net_ixgbe.so.21
/usr/lib64/librte_net_ixgbe.so.21.0
/usr/lib64/librte_net_mlx4.so.21
/usr/lib64/librte_net_mlx4.so.21.0
/usr/lib64/librte_net_mlx5.so.21
/usr/lib64/librte_net_mlx5.so.21.0
/usr/lib64/librte_net_netvsc.so.21
/usr/lib64/librte_net_netvsc.so.21.0
/usr/lib64/librte_net_nfp.so.21
/usr/lib64/librte_net_nfp.so.21.0
/usr/lib64/librte_net_qede.so.21
/usr/lib64/librte_net_qede.so.21.0
/usr/lib64/librte_net_ring.so.21
/usr/lib64/librte_net_ring.so.21.0
/usr/lib64/librte_net_tap.so.21
/usr/lib64/librte_net_tap.so.21.0
/usr/lib64/librte_net_vdev_netvsc.so.21
/usr/lib64/librte_net_vdev_netvsc.so.21.0
/usr/lib64/librte_net_vhost.so.21
/usr/lib64/librte_net_vhost.so.21.0
/usr/lib64/librte_net_virtio.so.21
/usr/lib64/librte_net_virtio.so.21.0
/usr/lib64/librte_node.so.21
/usr/lib64/librte_node.so.21.0
/usr/lib64/librte_pci.so.21
/usr/lib64/librte_pci.so.21.0
/usr/lib64/librte_pdump.so.21
/usr/lib64/librte_pdump.so.21.0
/usr/lib64/librte_pipeline.so.21
/usr/lib64/librte_pipeline.so.21.0
/usr/lib64/librte_port.so.21
/usr/lib64/librte_port.so.21.0
/usr/lib64/librte_power.so.21
/usr/lib64/librte_power.so.21.0
/usr/lib64/librte_rawdev.so.21
/usr/lib64/librte_rawdev.so.21.0
/usr/lib64/librte_rcu.so.21
/usr/lib64/librte_rcu.so.21.0
/usr/lib64/librte_regexdev.so.21
/usr/lib64/librte_regexdev.so.21.0
/usr/lib64/librte_reorder.so.21
/usr/lib64/librte_reorder.so.21.0
/usr/lib64/librte_rib.so.21
/usr/lib64/librte_rib.so.21.0
/usr/lib64/librte_ring.so.21
/usr/lib64/librte_ring.so.21.0
/usr/lib64/librte_sched.so.21
/usr/lib64/librte_sched.so.21.0
/usr/lib64/librte_security.so.21
/usr/lib64/librte_security.so.21.0
/usr/lib64/librte_stack.so.21
/usr/lib64/librte_stack.so.21.0
/usr/lib64/librte_table.so.21
/usr/lib64/librte_table.so.21.0
/usr/lib64/librte_telemetry.so.21
/usr/lib64/librte_telemetry.so.21.0
/usr/lib64/librte_timer.so.21
/usr/lib64/librte_timer.so.21.0
/usr/lib64/librte_vhost.so.21
/usr/lib64/librte_vhost.so.21.0
/usr/share/doc/dpdk
/usr/share/doc/dpdk/MAINTAINERS
/usr/share/doc/dpdk/README

References

Summary

In this tutorial we learn how to install dpdk on CentOS 8 using yum and dnf.