Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure RHEL8 local yum source and DNF

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to configure RHEL8 local yum source and DNF, the article is very detailed, has a certain reference value, interested friends must read it!

In RHEL8, the software source is divided into two parts, one is BaseOS, the other is AppStream. In Red Hat Enterprise Linux 8.0, unified ISO automatically loads the BaseOS and AppStream installation source repositories. It already exists in the CD link, but you need to configure the .repo file separately. BaseOS Repository-the BaseOS repository provides the underlying core OS content in the form of traditional RPM packages. AppStream Repository-the Application Stream repository provides all the applications that a user might want to run in a given user space.

Environment

Red Hat Enterprise Linux release 8.0 VMware Workstation Pro 14

On Red Hat Enterprise Linux 8, a new version of the YUM tool based on DNF technology (YUM v4) ensures that the software is installed. YUM v4 has the following advantages over YUM v3 previously used on RHEL 7: improved performance support for modular content well-designed stable API for tool integration

Introduction to configuring RHEL8 Local yum Source and DNF introduction to configuring RHEL8 Local yum Source and DNF

YUM v4 is compatible with YUM v3 when using the command line, editing, or creating configuration files. For installing software, you can use the yum command and its specific options as you would on RHEL 7.

Configuration method is the same as RHEL7 configuring local yum source

[root@localhost ~] # mkdir / yum [root@localhost ~] # mount / dev/cdrom / yummount: / yum: WARNING: device write-protected Mounted read-only. [root@localhost ~] # df-hFilesystem Size Used Avail Use% Mounted ondevtmpfs 889M 0889M 0% / devtmpfs 904M 0904M 0% / dev/shmtmpfs 904M 18M 886M 2% / runtmpfs 904M 0904M 0% / sys/fs/cgroup/dev/mapper/rhel-root 17G 3. 9G 14G 23% / / dev/sda1 1014M 170M 845M 17% / boottmpfs 181M 20K 181m 1% / run/user/42tmpfs 181M 3.5m 178m 2% / run/user/0/dev/sr0 6.7G 6.7G 0100% / yum [root@localhost ~] # echo "/ dev/cdrom / yum iso9660 defaults 00" > > / etc/fstab [root@localhost ~] # cat / etc/fstab## / etc/fstab# Created by anaconda on Tue Dec 24 05:39:07 2019 Accessible filesystems By reference, are maintained under'/ dev/disk/'.# See man pages fstab (5), findfs (8), mount (8) and/or blkid (8) for more info.## After editing this file Run 'systemctl daemon-reload' to update systemd# units generated from this file.#/dev/mapper/rhel-root / xfs defaults 0 0UUID=e48080e4-ba01-45e5-a8fe-90ebb4c17c28 / boot xfs defaults 0 0/dev/mapper/rhel-swap defaults 0 0/dev/cdrom / yum iso9660 defaults 0 [root@localhost ~] # Cd / etc/yum.repos.d/ [root@localhost yum.repos.d] # vim AppStream.repo [AppStream] name=AppStreambaseurl= file:///yum/AppStreamenabled=1gpgcheck=0[root@localhost yum.repos.d] # vim BaseOS.repo [BaseOS] name=BaseOSbaseurl= file:///yum/BaseOSenabled=1gpgcheck=0[root@localhost yum.repos.d] # lsAppStream.repo BaseOS.repo redhat.repo

Use yum to install nginx. Nginx has been added to the appstream source in RHEL8. You can install it directly.

[root@localhost yum.repos.d] # yum install-y nginx

Introduction to DNF

DNF (Dandified Yum) is a new generation of RPM software package manager. DNF package manager overcomes some bottlenecks of YUM package manager and improves many aspects, including user experience, memory footprint, dependency analysis, running speed and so on. DNF uses RPM,libsolv and hawkey libraries for package management operations, and Fedora22 already uses DNF by default. DNF package manager overcomes some bottlenecks of YUM package manager and improves many aspects, including user experience, memory footprint, dependency analysis, running speed and so on. DNF uses RPM, libsolv, and hawkey libraries for package management operations. DNF will be released on May 11, 2015.

Usage

View the DNF software libraries available in the system dnf repolist view all DNF software libraries available and unavailable in the system dnf repolist all list all RPM packages dnf list list all installed RPM packages dnf list installed list all available RPM packages dnf list available search software libraries RPM packages dnf search nano find a file provider dnf provides / bin/bash view package details dnf info nano installation package dnf install nano remove software Package dnf remove nano remove useless orphaned packages dnf autoremove delete cached useless packages dnf clean all get information about the use of a command to help dnf help clean view the execution history of the DNF command dnf history view all package groups dnf grouplist install a package group dnf groupinstall 'security tools' install specific software from a specific package library dnf-enablerepo=epel install nginx reinstall specific software packages dnf reinstall nano above Is all the content of the article "how to configure RHEL8 local yum sources and DNF" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report