How do I find out which rpm package a file belongs to?



  • To find out which rpm package a file belongs to, do the following:

    # rpm -qf /usr/bin/gpart
    gpart-0.1h-475.1
    

    Here we found out that /usr/bin/gpart belongs to the rpm package gpart-0.1h-475.1


Log in to reply
 

© Lightnetics 2024