Sorry, I've never heard of codesniffer before, so I've had to google it... Or rather, duckduckgo it!
Is this the codesniffer program you are talking about? (<< see link)
If so, have you taken a look at the
codesniffer project's website? ( << see link )
There some pretty clear instructions
here! (<< see link )
Hopefully the links above will help you! It looks like it is a fairly standard python installation procedure. I don't know what distro you are using, but as long as you aren't using anything too obscure, the pip installation method should work (see 3rd link):
That is, as long as you have pip installed! If not, pip should be available in the repos of whatever distro you are using, so you could install it via whatever package manager your chosen distro uses.
Otherwise the manual installation method should work.
With the manual installation, you'll need to extract the archive (.tar.gz / .zip etc), then navigate into the extracted directory and run the following commands (as per the 3rd link above):
Code:
python setup.py build
sudo python setup.py install
Note: The 2nd command requires root access in order to install the program. So sudo has been used to temporarily grant the user root access for that command. If you are using a distro that does not use sudo, then switch to root using whatever method your distro requires. (usually via su)
BTW for future reference:
In order to get good, concise answers here; it helps to include some information about the Linux distro/version you are currently using.