Package Based Software Installation on Centos/RedHat
Lab Setup
- Centos Machine: Ensure you create one centos/RHEL machine
YUM (Yellowdog Updater Modified)
- Opensource tool developed for RPM Based Packages by RedHat
- Main configuration file will be at /etc/yum.conf which specifies repository locations at /etc/yum.repos.d
- Yum will pick any file with extension .repo
Yum commandline
yum search tomcat
yum -q list available --showduplicates tomcat
yum install tomcat -y
- To Check updates to the system
yum check-update
yum update
- To apply update to specifc package
yum update <package-name>
- If you need add a custom repository to the yum add .repo file in /etc/yum.repos.d and then install the additional packages. Refer Here for elastic file beat installation
Managing repositories using yum
- Display all the enabled repositories
yum repolist
- Display all the available (enabled or disabled) repositiries
yum repolist all
yum-config-manager --enable <repo id>
History management using yum
yum history
# use id
yum history undo <ID>
Exercise
- Install ansible control server on Centos7
- Install nginx on Centos7
- Install nodejs on Centos7
Like this:
Like Loading...