Package installation via. Network Installation method

Mihir SuratwalaMihir Suratwala
2 min read

Last Blog Review

In the last blog we understood, what are packages in linux, types of installation of packages. How to work with standalone installation.

Network Installation

  1. Yum: (yellowdog udpater modified)

    Yum is an open source package management tool for installing rpm based packages in linux system. Yum overcomes all drawback of rpm command.

    It allows user’s and system administrator to easily install, update, remove or search software packages on a system.

  2. Yum command syntax:

     #yum <option> <Name of Package>
    

    Options:

    1. install - for installing

    2. remove - for uninstalling

    3. upgrade - for upgrading

    4. groupinstall - for installing group of application

    5. groupremove - for uninstalling group of application

    6. grouplist - for show list of group

    7. clean all - for cleaning repository cache

    8. list - for showing package list

  3. Installing package with yum

     yum install httpd*
    

    Note: For installing package with yum command we need to set yum path of centralized server in our system (repo)

  4. Steps for creating repository file (repo)

    1. Insert rhel 8.0 dvd and start VM: attach RHEL8 iso file in VM

    2. For show DVD mount point

       #lsblk
      
    3. Go to yum repository

       #cd /etc/yum.repos.d/
       #rm -rvf *
      
  5. For create repository file (repo)

    1. Create repo file

       #vim server.repo
      
       [app]
       name=appstrea
       baseurl=file:///run/media/root/RHEL-8-0-0-BaseOS-X86_64/AppStream
       enabled=1
       gpgcheck=0
       [base]
       name=baseos
       baseurl=file:///run/media/root/RHEL-8-0-0-BaseOS-x86_64/BaseOS
       enabled=1
       gpgcheck=0
       :wq
      
       #yum clean all
       #yum repolist
       #yum list
      
  6. Setup static IP to server and client OS

    1. Installing web server package and start enable service
    #yum install httpd*
    #systemctl start httpd
    #systemctl enable httpd

Copy and paste all package in

    /var/www/html/
    #cd /run/media/root/RHEL-8-0-0-BaseOS-X86_64
    #cp -rvf AppStream /var/www/html/
    #cp -rvf BaseOS /var/www/html/
  1. Create repo file
    #cd /etc/yum.repos.d/
    #vim server.repo
    [app]
    name=appstream
    baseurl=http://192.168.1.2/AppStream
    enabled=1
    gpgcheck=0
    [base]
    name=baseos
    baseurl=http://192.168.1.2/BaseOS
    enabled=1
    gpgcheck=0
  1. Setup firewall rule:
    #firewall-cmd-permanent -add-service=http
    #firewall-cmd-reload
    #systemctl restart httpd
  1. Configure client side yum repo
    #vim /etc/yum.repos.d/
    #rm -rvf *

    #vim servers.repo
    [app]
    name=appstream
    baseurl=http://192.168.1.2/AppStream
    enabled=1
    gpgcheck=0
    [base]
    name=baseos
    baseurl=http://192.168.1.2/BaseOS
    enabled=1
    gpgcheck=0
    :wq

    #yum clean all
    #yum repolist
    #yum install http*

Conclusion

In the this blog we understood, how to install package the network way of installation

Image credit → https://images.app.goo.gl/Z5tCFu8VyWuZWE8X6

💡
That’s a wrap for today’s post! I hope this has given you some valuable insights. Be sure to explore more articles on our blog for further tips and advice. See you in the next post!
0
Subscribe to my newsletter

Read articles from Mihir Suratwala directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Mihir Suratwala
Mihir Suratwala

Hi, How are you !! Hope you doing good.... I got introduced to Cloud initially. As I went ahead learning what is cloud and how it works, then got to know a field which is DevOps that makes Cloud model more effective. So, as I started working & got good experience on AWS. I have been learning the DevOps tool and technologies on how to use it with the Cloud, which will give me good understanding on how Cloud and DevOps go hand in hand to deploy my applications.