NDC & PKI

[Day 3] 5. Package Installation in Linux

D
DITISS Admin
••3 min read

There are three ways to install packages in Linux:

1. Installation from Binary

  • Definition:
    Binary packages are pre-compiled software packages that are ready to run without needing any additional compilation.

  • Command:
    To install a binary package in Linux, use the following command:

    bash
    dpkg -i any.deb
    
  • Characteristics:

    • These are platform-specific packages, usually in
      .deb
      (for Debian-based distributions like Ubuntu) or
      .rpm
      (for Red Hat-based distributions).
    • Binary installation is typically faster since the package is already compiled.

2. Package Management

  • Definition:
    Package managers are tools that handle the installation, upgrade, and removal of software packages in Linux.
    • They automatically resolve dependencies and ensure the software integrates well with the system.
  • Common Package Managers:
    • APT (for Debian-based distros like Ubuntu)
    • YUM (for Red Hat-based distros)
    • DNF (for Fedora)

3. Installation from Source Code

  • Definition:
    This method involves downloading the source code and compiling it on your system. It's typically used when you need a specific version of software or wish to customize it.

  • Steps to Install from Source Code:

    1. Configure: Check if your system is ready for compilation (ensures all necessary libraries and tools are present).
    2. Make: Compile the source code into a binary.
    3. Make Install: Install the compiled binary on your system.

    (Note: Sometimes there may be more than 3 steps depending on the software.)


When to Use Each Method

  • Binary Installation:
    Use this when you have a pre-compiled package available and want a quick setup.

  • Package Managers:
    Most users should use package managers for installing and managing software due to their simplicity, reliability, and automatic dependency management.

  • Source Code Installation:
    Ideal for developers or advanced users who need:

    • Specific features or custom configurations.
    • The latest version of the software not available through package managers.

Read Next

8/26/2026

[Day 3] 6. Nagios Setup

### **Pre-requisites:** 1. **Configure Hostname:** - Set the hostname as `nag-server`. To do the same follow these steps: 1. open...

8/26/2026

[Day 3] 7. Installing the Nagios Plugins

### **1. Install Dependencies for Plugins** Run the following command to install the required dependencies for Nagios plugins: ```bash sudo apt...