How do i know which package a command comes from in redhat?



  • If you need to find out which command a package is from, you can do the following:

    $ sudo yum provides ls 
    coreutils-8.22-11.el7.x86_64 : A set of basic GNU tools commonly used in shell scripts
    Repo        : rhui-REGION-rhel-server-releases
    Matched from:
    Filename    : /bin/ls
    

    Here the package coreutils-8.22-11.el7.x86_64 is where the command is bundled into.

    This can also be specified as.

    $ sudo yum whatprovides ls
    

Log in to reply
 

© Lightnetics 2024