You don't have a "DPDK package." You built the software from source, and installed it using a non-Debian tool (ninja). That does not meet the minimum definition of a software package.
You can install software that way all you like, it's not wrong. It's just not a package.
For a Debian-based system like Ubuntu, your ninja installed DPDK into the correct place.
/usr/local
is for non-deb software, including software you built yourself from source.
/usr/lib
is for software provided by deb packages (which yours is not)
It seems clear that you were misled by the DPDK documentation that building from source was the best way to install.
It's not.
The dpdk
package has been in the Ubuntu repositories for many years.
Let's see how to find it in a 22.10 system: (hint: it's the very first result)
You will get analagous results for any supported release of Ubuntu.
$ apt search dpdk | grep dpdk
dpdk/kinetic 21.11.2-0ubuntu1 amd64
dpdk-dev/kinetic 21.11.2-0ubuntu1 amd64
dpdk-doc/kinetic,kinetic 21.11.2-0ubuntu1 all
dpdk-kmods-dkms/kinetic 0~20220111+git-1ubuntu1 amd64
libdpdk-dev/kinetic 21.11.2-0ubuntu1 amd64
libuhd4.2.0-dpdk/kinetic 4.2.0.1+ds1-1 amd64
libuhd4.2.0-dpdk-tests/kinetic 4.2.0.1+ds1-1 amd64
openvswitch-switch-dpdk/kinetic-updates,kinetic-security 3.0.3-0ubuntu0.22.10.2 amd64
Next, let's check the package description to verify that the dpdk
package is really what we want:
$ apt show dpdk
[... snip ...]
Description: Data Plane Development Kit (runtime)
DPDK is a set of libraries for fast packet processing. Applications run
in user-space and communicate directly with dedicated network interfaces.
.
This package contains the runtime environment to run DPDK applications.
Okay, if that matches, then there are two steps to install:
- (OPTIONAL) Delete your manually-installed duplicate to avoid confusion.
sudo apt install dpdk