[LINUX] How to create a repository from media

This is the procedure for creating a repository from the installation media when installing a package.

Mount the media.

# mount /dev/cdrom /media

Creating / editing repository files

# vi /etc/yum.repos.d/dvd.repo
[dvd]
name=dvd
baseurl=file:///media
/gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

Make sure it is recognized as a repository.

# yum repolist
Loaded plugin:product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Repository ID Repository name Status
!dvd                                                                           dvd                                                                                                      4,986


Recommended Posts

How to create a repository from media
How to create a clone from Github
How to create a function object from a string
How to create a local repository for Linux OS
How to create a kubernetes pod from python code
How to create a Conda package
How to create a virtual bridge
How to create a Dockerfile (basic)
How to create a config file
How to create a git clone folder
How to install a package using a repository
How to create a Python virtual environment (venv)
How to open a web browser from python
How to create a JSON file in Python
How to generate a Python object from JSON
How to extract coefficients from a fractional formula
How to create a shortcut command for LINUX
[Note] How to create a Ruby development environment
How to create a Kivy 1-line input box
How to create a multi-platform app with kivy
How to create a Rest Api in Django
[Note] How to create a Mac development environment
How to clone github remote repository from atom
Read the Python-Markdown source: How to create a parser
How to create an article from the command line
Create a local pypi repository
How to create a submenu with the [Blender] plugin
How to call a function
[Go] How to create a custom error for Sentry
How to create a simple TCP server / client script
How to post a ticket from the Shogun API
How to take a captured image from a video (OpenCV)
Python script to create a JSON file from a CSV file
[Python] How to create a 2D histogram with Matplotlib
[Python] How to call a c function from python (ctypes)
How to create a radial profile from astronomical images (Chandra, XMM etc.) using python
How to use NUITKA-Utilities hinted-compilation to easily create an executable file from a Python script
How to slice a block multiple array from a multiple array in Python
How to run a Python program from within a shell script
How to launch AWS Batch from a python client app
How to create a flow mesh around a cylinder with snappyHexMesh
I made a tool to create a word cloud from wikipedia
How to generate a public key from an SSH private key
[Python Kivy] How to create a simple pop up window
How to create a SAS token for Azure IoT Hub
How to get a list of links from a page from wikipedia
How to write a Python class
How to use SWIG from waf
Steps to create a Django project
Create folders from '01' to '12' with python
How to make a slack bot
How to create your own Transform
How to create an email user
How to make a crawler --Advanced
How to make a recursive function
How to create / delete symbolic links
How to launch Explorer from WSL
How to make a deadman's switch
[Blender] How to make a Blender plugin
How to delete a Docker container
How to access wikipedia from python