Download a recent stable release from one of the Apache Download website
https://pig.apache.org/releases.html
Click on Download
![](https://projectsbasedlearning.com/wp-content/uploads/2022/11/A1-1024x216.png)
A new Page will get open (https://www.apache.org/dyn/closer.cgi/pig)
![](https://projectsbasedlearning.com/wp-content/uploads/2022/11/A2-1024x459.png)
Click on the link as marked in the below image
![](https://projectsbasedlearning.com/wp-content/uploads/2022/11/A3-1024x576.png)
A new page will get Open
![](https://projectsbasedlearning.com/wp-content/uploads/2022/11/A4.png)
Click on Latest Folder so the new page will get open
![](https://projectsbasedlearning.com/wp-content/uploads/2022/11/A5.png)
Download the file as shown in the image
![](https://projectsbasedlearning.com/wp-content/uploads/2022/11/A6-1024x418.png)
We have downloaded the file in directory /home/dataengineer/apachepig/
![](https://projectsbasedlearning.com/wp-content/uploads/2022/11/A7-1024x355.png)
Unzip the file using the below command
tar -xvzf pig-0.17.0.tar.gz
Add /pig-n.n.n/bin to your path. Use export (bash,sh,ksh) or setenv (tcsh,csh). For example:
$ export PATH=/<my-path-to-pig>/pig-n.n.n/bin:$PATH
Executing Pig Help Command
![](https://projectsbasedlearning.com/wp-content/uploads/2022/11/A8-1024x576.png)