Connect with us

Hi, what are you looking for?

Linux

How to Create Offline DNF Repository on RHEL 8 / CentOS 8

DNF stands Dandified YUM and this is the default package manager for RHEL 8 / CentOS 8.  This tutorial explains you how to create an offline repository using DNF on RHEL 8 / CentOS 8.
1. Copy the RHEL DVD or Extract the ISO images to the desired location /mnt/rhel/dvd where you want to be kept.
2. Create the offline repository to its desired offline repository location

# vim /etc/yum.repos.d/server.repo

Add the given lines to it

[server]
name= server repo
baseurl=file:///mnt/rhel/dvd
enabled=1
gpgcheck=0

When completes then save and exit using :wq
3. Clean the repository cache to enable the new offline repository

# dnf clean all

4. List the repository that you have recently added as a offline repository

Advertisement. Scroll to continue reading.
# dnf repolist

5. Install any example packages

# dnf install httpd

6. Reinstall any example package

# dnf reinstall httpd

7. List of available packages

# dnf list all

8. Search the example packages

Advertisement. Scroll to continue reading.
# dnf search httpd

9. Upgrade all the installed packages

# dnf upgrade

10. Individual example package information

# dnf info httpd

11. Install the group of example packages

# dnf group install mariadb

12.  Information about group of example packages

Advertisement. Scroll to continue reading.
# dnf group info mariadb

13. Remove the example package

# dnf remove httpd

14.  Remove the group of example packages

# dnf group remove mariadb

15. Listing the old transaction

# dnf history list

16. Listing the particular example transaction

Advertisement. Scroll to continue reading.
# dnf history list mariadb

Main DNF configuration file is /etc/dnf/dnf.conf
Congratulation now you have enabled the offline repository on your RHEL 8 / CentOS 8.

Comments
Advertisement
Advertisement
Advertisement

You May Also Like

Windows

How to auto upgrade JioFi firmware for JioFi 2 / JioFi 3 / JioFi 4 / JioFi 5 / JioFi 6 and other JioFi...

Windows

Internet is the most important public network for connecting to the WEB. For internet connection requirement the ISP is required as well as it...

Windows

How to download and install the Mobile Intel 4 Series Express Chipset Graphics Drivers for Windows 10.  Windows 10 is the one of the...

Windows

How to Install and Configure PCSX2 on Windows 10. The Windows 10 is the most recommended operating system for the Games. In stream platform...