Linux Classroom Series – 28/Jul/2020

Software Installations in Linux Using Package Managers

Red Hat Package Manager (RPM)

  • RPM is a software management system that is used for installation & removal of software packages.
  • A package typically consists of archive of files and other metadata, includes configuration files, binaries.
  • RPM is pre-install on all redhat flavors like centos, rhel, fedora, Amazon linux etc…
  • Following are the primary functions of RPM program
    • Query, verify, update, install and uninstall software
    • Maintains a database that stores information about packages
    • Package other software into RPM form
  • Querying for all package
    • Execute the command below to list all the packages install on your system
    rpm --query --all
    
  • Querying Details for a specific package
    • Lets find information about a package called as bash
    rpm --query bash-*
    
    
    Preview
    • To list all files that come with your package
    rpm -ql bash
    
    • To list configuration files
    rpm -qc bash
    
  • Determining what other packages on the system depend on the bash package
rpm -q --whatrequires bash
  • Installing software using rpm
    • Lets use rpm to install file beat available over here
    curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.8.0-x86_64.rpm
    
    Preview
  • Uninstall software using rpm Preview

The Debian Package Management System (DPMS)

  • DPMS is the framework for managing software on Debian or Debian-like systems
  • Debian packages end with .deb
  • At the core of DPMS is the dpkg application which works with the system providing several command line options Preview
  • Lets install and uninstall filebeat from debian package available over here
cd /tmp
wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.8.0-amd64.deb
sudo dpkg -i <debpackage path>

Preview

Automatic updates and package installers

  • We have following popular tools
    • YUM
    • DNF
    • APT
    • SNAP
  • Next Steps: Dive Deeper into Repository based software installations.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube