CompTIA Linux+ (XK0-004)
Red Hat Enterprise Linux
Git and Github
Learn Docker and Kubernates
Tips and Tricks

6. Installing Packages from Source Code

Doing it the old way

Before RPM and YUM, installing packages from source code was the only way.

The three step process:

  • ./configure

    • Check for necessary components

    • Creates the Makefile

  • make

    • Builds the executable binary file

  • make install

    • Installs the software

Usually the source course is available in the tarball format such tar.gz or tar.bz - kind of a zipped file of some kind.

Demo:

Installing Nmap 7.91 from source code:

wget https://nmap.org/dist/nmap-7.91.tar.bz2
‚Äč
file nmap-7.91.tar.bz2
bzip2 -d nmap-7.91.tar.bz2
tar -xf nmap-7.91.tar
yum groupinstall 'Development Tools'
cd nmap-7.91/
./configure
make
make install