Installing from Source - Paiet/Tech-Journal-for-Everything GitHub Wiki
- Why?
- Not all software is distributed as a pre-compiled binary
- May change too frequently
- May not have the resources to maintain packages
- Pros
- Compiling allows you to build the software to your needs
- Will typically perform better and consume less space
- Cons
- Requires manual updates
- Prone to error / Debugging
- Mistakes are possible
- Requires dev tools to be installed
- Example
- John the Ripper
- Open source password brute-force utility
- Binaries are paid commercial software
- Source code is free
- Pre-requisites
sudo yum install gcc make gzip
wget http://www.openwall.com/john/j/john-1.8.0.tar.gz
- Build process
- Unpack the source code
tar -xvzf ./john-1.8.0.tar.gz
- Move to the source folder
- (Optional) Set configuration options
- List the supported build architectures
- Execute the desired build
make clean linux-x86-64
clean
indicates to use a fresh config
oldconfig
would re-use existing config files
- (Optional) Move binaries to system directories
- Test the application