5

rpm -qf give me the name of the package that contains the file for example:

rpm -qf /boot/vmlinuz-4.14.18-200.fc26.x86_64 

kernel-core-4.14.18-200.fc26.x86_64

1 Answer 1

8

I believe that you are looking for dpkg -S <package name>.

Example:

~$ dpkg -S /boot/vmlinuz-4.13.0-38-generic 
linux-image-4.13.0-38-generic: /boot/vmlinuz-4.13.0-38-generic

Hope this helps!

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.