Package installation via. Network Installation method


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
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.
Yum command syntax:
#yum <option> <Name of Package>
Options:
install - for installing
remove - for uninstalling
upgrade - for upgrading
groupinstall - for installing group of application
groupremove - for uninstalling group of application
grouplist - for show list of group
clean all - for cleaning repository cache
list - for showing package list
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)
Steps for creating repository file (repo)
Insert rhel 8.0 dvd and start VM: attach RHEL8 iso file in VM
For show DVD mount point
#lsblk
Go to yum repository
#cd /etc/yum.repos.d/ #rm -rvf *
For create repository file (repo)
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
Setup static IP to server and client OS
- 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/
- 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
- Setup firewall rule:
#firewall-cmd-permanent -add-service=http
#firewall-cmd-reload
#systemctl restart httpd
- 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
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.