LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   about yum package (https://www.linuxquestions.org/questions/linux-newbie-8/about-yum-package-4175535145/)

byran cheung 02-26-2015 04:05 AM

about yum package
 
I would like to use yum to install package , but how do I know the package name that I should use , for example , if I want to use ldapsearch , I tried "yum install ldapsearch" , it doesn't work , how can I know what package name to install , what package includes this command - "yum install packname" ?

thanks

jpollard 02-26-2015 04:37 AM

You can use "yum provides '*/ldapsearch'" and it will search the package contents for the file ldapsearch. I suspect it will be in the openldap-clients package. (right now it seems the repositories are being updated and are in an inconsistent state...)

John VV 02-26-2015 09:20 PM

besides the "provides" from above

do a search
Code:

su -
yum search ldap

see the manual and help pages
Code:

su -
yum --help

-- and the manual ---

man yum



All times are GMT -5. The time now is 10:50 PM.