< Home - < Back

which


Information about the package, which, which is shipped with common Linux distributions. The which package is designed for, Displays where a particular program in your path is located.


Package Name:

which

Summary:

Displays where a particular program in your path is located

Description:

The which command shows the full pathname of a specified program, if the specified program is in your PATH.

Architecture:

x86_64

Version:

2.19

Release:

6.el6

Size:

71 k

Repository:

installed

From Repository:

anaconda-CentOS-201303020151.x86_64

Licence:

GPLv3



Handy Yum Commands for which


Control the which package with the following handy commands outlined below.


Command

Description of Command

yum install which

This command will install which on the server.

yum remove which

This command will un-install which on the server. When you run this command, you will be asked if you are sure that you want to remove which, so you have to manually confirm that you want to do this.

yum -y remove which

This command will un-install which on the server. When you run this command with th e -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove which when using the -y flag.

yum update which

This command will update which to the latest version. When you run this command, you will be asked if you are sure that you want to remove which, so you have to manually confirm that you want to do this.

yum -y update which

This command will update which to the latest version. When you run this command with the -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove which when using the -y flag.

yum info which

This command will show you core information about the which package.

yum deplist which

This command will show you the dependencies for which. Thankfully, when using Yum, if dependencies are required, these are also installed at the same time so you don't have to worry too much about that.

yum check-update which

This command will check if there is an update waiting on which. When you run this command this will return nothing if there is nothing to update, or, will return the package name if the package is due to be updated.