OpenSource For You

Know your commands

-

Often, we need to know which command is packed in which rpm package. Here is a tip that will help you get to know the package name. Let us look at an example in which we need to know the name of the package that contains the ssh command. $which ssh /usr/bin/ssh $rpm -qf /usr/bin/ssh openssh-clients-5.2p1-31.fc12.i686

In the above commands, we get the location of ssh by running which and then the rpm package name containing ssh is outputted by the second command.

Also, we can combine both commands in one and get the desired output, as follows: $rpm -qf `which ssh` openssh-clients-5.2p1-31.fc12.i686

Note: Please be aware that the above tip may not output as desired for command aliases.

— Sudevan K, sudevank@gmail.com

 ??  ??

Newspapers in English

Newspapers from India