Skip to main content

0104 | Installing Software

Installing Software

Linux Package Management

  • programs executable; libraries; config --> stored in a single archive --> package

Package Management | Debian Systems | .deb

  • package managers
    • dpkg and apt
  • update database
    • apt update
    • apt list --upgradable
  • upgrade the system
    • apt upgrade
  • search for the software
    • apt search <software>
  • check info about a packet
    • apt show <software>
  • install
    • apt install <software>
  • remove software from system
    • apt remove <software>
    • remove the remaining config data
      • apt purge <software>
  • uninstall leftover dependencies
    • apt autoremove

Package Management | RedHat Systems | .rpm

  • low level tool
    • rpm
  • high level tool
    • yum
  • update database
    • sudo yum check-update
  • update the system
    • sudo yum update
    • essentially update and upgrade combined
  • searching for a package
    • yum search <package>
  • check package info
    • yum info <package>
  • install package
    • sudo yum install <package>
  • remove package
    • sudo yum remove <package>

Manually Installing Software

  • if no package for the distribution exists --> compile it yourself
  • Step-1: install the tools to build the software
    # missing -- checkinstall;libz-dev
    apt install build-essential automake checkinstall libz-dev libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext cmake gcc curl

    # modified -- omitting the missing ones
    sud apt install build-essential automake libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext cmake gcc curl
  • Step-2: download/extract the source code -- install git
    • most of the time, source code is available as a tar-ball
    • download the tar ball
      cd Downloads
      wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.29.3.tar.gz
    • extract the tar ball -- tar xfz git-2.29.3.tar.gz
    • move to the source files -- cd git-2.29.3/
  • Step-3: configure the build environment
    • check the install help file
      • less INSTALL
    • configure with default options
      • ./configure --> will create the Makefile
    • verify Makefile
      • ls Makefile
  • Step-4: compile the files | make
    • run make to compile the code
    • make -- (might take a while)
  • Step-5: install the software | make install
    • sudo make install
  • Step-6: verify successful install
    • git --version