how do i check which package has installed some command
suppose ls , mkdir or whatever ???

Answers were Sorted based on User's Feedback



how do i check which package has installed some command suppose ls , mkdir or whatever ???..

Answer / vidyakiran

rpm -qf /bin/ls

Is This Answer Correct ?    11 Yes 3 No

how do i check which package has installed some command suppose ls , mkdir or whatever ???..

Answer / vishal sharma

rpm -qa | grep "pakage name"

Is This Answer Correct ?    7 Yes 6 No

how do i check which package has installed some command suppose ls , mkdir or whatever ???..

Answer / susheel narayan singh

To see which package has installed.
1- In text mode

# yum list installed
or
# rpm -q

2- Go on graphic mode by pressing ctrl+alt+f7

#pirut

Is This Answer Correct ?    2 Yes 1 No

how do i check which package has installed some command suppose ls , mkdir or whatever ???..

Answer / swapnil

rpm -qf `which ls`

Is This Answer Correct ?    1 Yes 3 No

how do i check which package has installed some command suppose ls , mkdir or whatever ???..

Answer / vidyakiran

rpm -qa /usr/bin/ls
gives you from which rpm the "ls" command is installed.

Is This Answer Correct ?    5 Yes 8 No

how do i check which package has installed some command suppose ls , mkdir or whatever ???..

Answer / tyagi

#rpm -qa then enter.
show all package are installed.

Is This Answer Correct ?    0 Yes 3 No

how do i check which package has installed some command suppose ls , mkdir or whatever ???..

Answer / nitish porwal

rpm -qa | grep 'package name'

Is This Answer Correct ?    3 Yes 7 No

how do i check which package has installed some command suppose ls , mkdir or whatever ???..

Answer / manoj

rpm -qa | grep <package name>
yum install <package name> it will show already installed
or not if not then it will install
Pirut same as yum

Is This Answer Correct ?    1 Yes 9 No

Post New Answer

More Linux AllOther Interview Questions

Tell me the 5 differences between Linux and Unix?

4 Answers  


How to trace any process background processing?

5 Answers  


When you install RedHat what is the kernel mode ? What is kernel compilation / upgrade ?

4 Answers   IBM,


Why is it suggested to disable journalism in ext4 filesystem?

0 Answers   IBM, TCS,


What is page-in and page-out in redhat linux?

1 Answers  






what is difference between inetd and xinetd

2 Answers  


i installed clustering packages.When i try to run it getting LUCI error...what is it..??

0 Answers  


What is the difference between home directory and working directory?

10 Answers   Accenture, Flexi,


What is the complete name of the default configuration file for LILO?

1 Answers  


How to ""Add"" not replace address to same network card other than the alias way.... ??????

3 Answers  


what is the difference betweenh the NFS and FTP?

4 Answers   IBM,


How do display error messages instantly when command fails?

4 Answers  


Categories