📦 Configure Local YUM Repository | Linux Level-2 Series | Lab 9
Welcome to Lab 9 of the Linux Level-2 Series! In this hands-on lab, you’ll learn how to configure a local YUM repository, a crucial skill for managing packages efficiently in controlled and secure environments.
The Nautilus production and security teams have decided to use local repositories to maintain required packages across their infrastructure. Your task is to configure a local YUM repository on the Nautilus Backup Server and install a package from it.
📌 Lab Objective:
Set up a local YUM repository and install a package using it.
🛠️ Task Requirements:
Package Location: /packages/downloaded_rpms/
Repository ID: local_yum
Repository Name: local_yum
Package to Install: samba
💻 Step-by-Step Commands:
Switch to root or use sudo
sudo su -
Create repo file
vi /etc/yum.repos.d/local_yum.repo
🔧 Add the following configuration:
[local_yum]
name=local_yum
baseurl=file:///packages/downloaded_rpms/
enabled=1
gpgcheck=0
Clean and refresh yum cache
yum clean all
yum repolist
Install samba package from local repo
yum install -y samba
🔍 Verify Installation:
rpm -qa | grep samba
✅ Expected Outcome:
Local repository local_yum is successfully configured.
System fetches packages from the local directory.
samba package is installed successfully.
📚 What You’ll Learn in This Video:
How to configure a local YUM repository
Understanding repository configuration files
Managing offline or restricted environments
Installing packages from custom repositories
Best practices for enterprise package management
Real-world Linux administration workflows
🌟 Why This Lab Matters:
Local repositories improve security, reduce external dependencies, and increase deployment speed in enterprise environments. This is especially important for production systems with restricted internet access.
🎯 Series: Linux Level-2
Enhance your Linux administration skills with real-world labs designed for DevOps engineers and system administrators.
🔔 Don’t forget to like, share, and subscribe for more tutorials from OtterTech!
#Linux #YUM #DevOps #SystemAdministration #OpenSource #Automation #Nautilus #LinuxLevel2 #100DaysOfDevOps #OtterTech #Lab9