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

# dnf repolist

5. Install any example packages

Advertisement. Scroll to continue reading.
# dnf install httpd

6. Reinstall any example package

# dnf reinstall httpd

7. List of available packages

# dnf list all

8. Search the example packages

# dnf search httpd

9. Upgrade all the installed packages

# dnf upgrade

10. Individual example package information

Advertisement. Scroll to continue reading.
# dnf info httpd

11. Install the group of example packages

# dnf group install mariadb

12.  Information about group of example packages

# 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

Advertisement. Scroll to continue reading.
# dnf history list

16. Listing the particular example transaction

# 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

Linux

In this tutorial we will configure ISCSI Target Server on CentOS 8 / RHEL 8. ISCSI stands for Internet Small Computer Systems Interface.  This...

Linux

In this tutorial we will configure SELinux Modes on CentOS 8 / RHEL 8. SELinux stands for Security-Enhanced Linux and it is developed by...

Linux

DNF stands Dandified YUM and this is the default package manager for RHEL 8 / CentOS 8.  This tutorial explains you how to create...

Linux

If you forget a root password of your RHEL 8 and CentOS 8 and want to reset the password so that the RHEL 8...

Windows

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

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...