How I can install IPFS in my machine and add file ,pined file and use CIDV1

How I can install IPFS in my machine and add file ,pined file and use CIDV1. I am not getting step by process.I want to to understand how its work in my local , then I will go for private cluster.

Can anyone suggest step by step process for RED HAT.