跳转至

ubuntu

install missing kernel module

sudo apt install linux-modules-extra-`uname -r`

dpkg

dpkg -l |grep pkg_name

search file belongs to

dpkg -S /bin/ls

get all files the package installed

dpkg-query -L <package_name>

get all files in deb package

dpkg-deb -c <package_name.deb>

apt-file – find pkg provide files

sudo apt-get install apt-file
sudo apt-file update
apt-file search  a.h

fixed specific version

sudo apt install terraform=1.5.7-1
sudo apt-mark hold terraform