Linux

How to create YUM Repository from ISO or Online

The Yellowdog Updater Modified (YUM) is an Opensource tool which is used over command line to manage package, it is also known as package management utility for the machine which is running Linux Operating system using RPM package manager. Like YUM there are several tools used to manage package in GUI.

On Linux yum is used as a command line to install/remove/update/info the package.

In this tutorial, we will also we will show how to create yum repository from ISO or Online on your machine.

Steps to create a local YUM repository with ISO Image:

You can use ANY Linux – RHEL, CENTOS, MINT or Fedora etc ISO Image.

Firstly create a directory

Now mount the ISO file, follow below command to do this:

Copy the packages from ISO to /packages dir, Once you have copied it then install the required package for creating yum repo.

Goto /packages dir and follow below command:

After installing these packages now we will create repo file.

Goto /etc/yum.repos.d/ and created one file with name local-Linux.repo (you can give any name),

Save this file and now create repo data:

Clear the cache and run repo list:

When you fire repolist command you can see your repository also “local-linux.repo”

Step to create yum repository by using the online repo

This Process is similar to local repo only that you will create repo file with repo url where all packages are available.

Here internet speed must be good, create repo dir

This repo is ready to use.

Related Articles

Leave a Reply

Your email address will not be published.

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

Close

Adblock Detected

Please consider supporting us by disabling your ad blocker