########### 修改文件/etc/rc.d/rc.local ################################
[root@alexw-device ~]# vim /etc/rc.d/rc.local
[root@alexw-device ~]# cat /etc/rc.d/rc.local
#!/bin/bash
# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES
#
# It is highly advisable to create own systemd services or udev rules
# to run scripts during boot instead of using this file.
#
# In contrast to previous versions due to parallel execution during boot
# this script will NOT be run after all other services.
#
# Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure
# that this script will be executed during boot.
touch /var/lock/subsys/local
mount /root/Desktop/rhel-8.6-x86_64-dvd.iso /var/www/html/iso
[root@alexw-device ~]# chmod +x /etc/rc.d/rc.local
dnf相关命令
repolist ##列出仓库信息
clean all ##清除系统中已经加载的仓库缓存信息 /var/cache/dnf
list all ##列出所有软件
list available ##列出未安装软件
list installed ##列出已安装软件
install ##安装
remove ##卸载
reinstall ##重新安装
search ##搜索
whatprovides ##搜索包含文件的软件包
history ##dnf执行历史
history info ##dnf执行历史详细信息
group list ##列出软件组
group list --installed ##列出已安装软件组
group list --available ##列出未安装软件组
group list --hidden ##列出隐藏软件案组
group install ##安装软件组
group info ##查看软件组信息
[root@alexw-device ~]# dnf repolist
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id repo name
AppStream AppStream
BaseOS BaseOS
[root@alexw-device ~]# dnf clean all # 清除的是这个目录的缓存/var/cache/dnf/
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
35 files removed
[root@alexw-device ~]# ll /var/cache/dnf/
total 820
drwxr-xr-x. 4 root root 38 Jun 22 2021 AppStream-b0777c5f74c3405e
drwxr-xr-x. 3 root root 22 Nov 16 20:44 AppStream-b397ed1b06ec5f59
drwxr-xr-x. 3 root root 22 Nov 16 21:01 AppStream-f0c6c5eb36e6d341
drwxr-xr-x. 3 root root 22 Nov 16 21:01 BaseOS-1cb1d80eb2d1412b
drwxr-xr-x. 4 root root 38 Jun 22 2021 BaseOS-5c5271346fadac6f
drwxr-xr-x. 3 root root 22 Nov 16 20:44 BaseOS-5e9868fdbbb0b02d
-rw-r--r--. 1 root root 2 Nov 16 21:26 expired_repos.json
drwxr-xr-x. 4 root root 38 Jun 22 2021 kolourpaint-a4a8f194f7fcf618
-rw-r--r--. 1 root root 0 Nov 16 21:01 last_makecache
-rw-r--r--. 1 root root 831488 Nov 16 21:01 packages.db
-rw-r--r--. 1 root root 2 Nov 16 20:45 tempfiles.json
[root@alexw-device ~]# dnf list all
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
AppStream 531 MB/s | 7.5 MB 00:00
BaseOS 494 MB/s | 2.4 MB 00:00
Installed Packages
GConf2.x86_64 3.2.6-22.el8 @AppStream
ModemManager.x86_64 1.10.8-2.el8 @anaconda
ModemManager-glib.x86_64 1.10.8-2.el8 @anaconda
NetworkManager.x86_64 1:1.22.8-4.el8 @anaconda
NetworkManager-adsl.x86_64 1:1.22.8-4.el8 @anaconda
NetworkManager-bluetooth.x86_64
1:1.22.8-4.el8 @anaconda
NetworkManager-config-server.noarch
1:1.22.8-4.el8 @anaconda
NetworkManager-libnm.x86_64 1:1.22.8-4.el8 @anaconda
NetworkManager-team.x86_64 1:1.22.8-4.el8 @anaconda
NetworkManager-tui.x86_64 1:1.22.8-4.el8 @anaconda
NetworkManager-wifi.x86_64 1:1.22.8-4.el8 @anaconda
.......................................
[root@alexw-device ~]# ll /var/cache/dnf/
total 11836
drwxr-xr-x. 4 root root 38 Jun 22 2021 AppStream-b0777c5f74c3405e
drwxr-xr-x. 3 root root 22 Nov 16 20:44 AppStream-b397ed1b06ec5f59
drwxr-xr-x. 3 root root 22 Nov 16 21:27 AppStream-f0c6c5eb36e6d341
-rw-r--r--. 1 root root 5901336 Nov 16 21:27 AppStream-filenames.solvx
-rw-r--r--. 1 root root 2493227 Nov 16 21:27 AppStream.solv
drwxr-xr-x. 3 root root 22 Nov 16 21:27 BaseOS-1cb1d80eb2d1412b
drwxr-xr-x. 4 root root 38 Jun 22 2021 BaseOS-5c5271346fadac6f
drwxr-xr-x. 3 root root 22 Nov 16 20:44 BaseOS-5e9868fdbbb0b02d
-rw-r--r--. 1 root root 1337487 Nov 16 21:27 BaseOS-filenames.solvx
-rw-r--r--. 1 root root 1542198 Nov 16 21:27 BaseOS.solv
-rw-r--r--. 1 root root 2 Nov 16 21:27 expired_repos.json
drwxr-xr-x. 4 root root 38 Jun 22 2021 kolourpaint-a4a8f194f7fcf618
-rw-r--r--. 1 root root 0 Nov 16 21:01 last_makecache
-rw-r--r--. 1 root root 831488 Nov 16 21:27 packages.db
-rw-r--r--. 1 root root 2 Nov 16 20:45 tempfiles.json
[root@alexw-device ~]# dnf list avaliable make
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:02:27 ago on Wed 16 Nov 2022 09:27:27 PM CST.
Available Packages
make.x86_64 1:4.2.1-11.el8 BaseOS
####################### 软件组 #######################################
[root@alexw-device ~]# dnf group list
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:07:00 ago on Wed 16 Nov 2022 09:27:27 PM CST.
Available Environment Groups:
Server
Minimal Install
Workstation
Virtualization Host
Custom Operating System
Installed Environment Groups:
Server with GUI
Installed Groups:
Container Management
Headless Management
Available Groups:
.NET Core Development
RPM Development Tools
Development Tools
Graphical Administration Tools
Legacy UNIX Compatibility
Network Servers
Scientific Support
Security Tools
Smart Card Support
System Tools
[root@alexw-device ~]# dnf group list --hidden
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:07:28 ago on Wed 16 Nov 2022 09:27:27 PM CST.
Available Environment Groups:
Server
Minimal Install
Workstation
Virtualization Host
Custom Operating System
Installed Environment Groups:
Server with GUI
Installed Groups:
base-x
Container Management
Guest Desktop Agents
Internet Browser
Multimedia
VMware platform specific packages
Printing Client
Virtualization Client
Virtualization Hypervisor
Virtualization Tools
Core
Fonts
GNOME
Hardware Monitoring Utilities
Hardware Support
Headless Management
Common NetworkManager submodules
Server product core
Standard
Available Groups:
Backup Client
Conflicts AppStream
Debugging Tools
Desktop Debugging and Performance Tools
DNS Name Server
.NET Core Development
FTP Server
GNOME Applications
Graphics Creation Tools
Guest Agents
Input Methods
Internet Applications
Java Platform
Legacy X Window System Compatibility
Office Suite and Productivity
Atomic Host ostree support
KVM platform specific packages
Hyper-v platform specific packages
Remote Desktop Clients
RPM Development Tools
TeX formatting system
Virtualization Platform
Basic Web Server
Additional Development
Anaconda tools
Base
Conflicts BaseOS
Development Tools
Dial-up Networking Support
File and Storage Server
Graphical Administration Tools
Infiniband Support
Large Systems Performance
Legacy UNIX Compatibility
Mail Server
Mainframe Access
Network File System Client
Network Servers
Networking Tools
Performance Tools
Platform Development
Python Web
Remote Management for Linux
Scientific Support
Security Tools
Smart Card Support
Windows File Server
System Tools
Workstation product core
################# 安装java #################################
[root@alexw-device ~]# dnf group info "Java Platform"
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:08:27 ago on Wed 16 Nov 2022 09:27:27 PM CST.
Group: Java Platform
Description: Java support for the Red Hat Enterprise Linux Server and Desktop Platforms.
Mandatory Packages:
java-1.8.0-openjdk
Default Packages:
icedtea-web
[root@alexw-device ~]# dnf group install "Java Platform"
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:08:42 ago on Wed 16 Nov 2022 09:27:27 PM CST.
Dependencies resolved.
================================================================================
Package Arch Version Repo Size
================================================================================
Installing group/module packages:
icedtea-web x86_64 1.8.4-4.el8 AppStream 1.7 M
java-1.8.0-openjdk x86_64 1:1.8.0.322.b06-11.el8 AppStream 346 k
Installing dependencies:
copy-jdk-configs noarch 4.0-2.el8 AppStream 31 k
java-1.8.0-openjdk-headless
x86_64 1:1.8.0.322.b06-11.el8 AppStream 34 M
javapackages-filesystem
noarch 5.3.0-1.module+el8+2447+6f56d9a6 AppStream 30 k
javapackages-tools noarch 5.3.0-1.module+el8+2447+6f56d9a6 AppStream 44 k
lksctp-tools x86_64 1.0.18-3.el8 BaseOS 100 k
tagsoup noarch 1.2.1-15.el8 AppStream 118 k
ttmkfdir x86_64 3.0.9-54.el8 AppStream 62 k
tzdata-java noarch 2022a-1.el8 AppStream 191 k
xorg-x11-fonts-Type1 noarch 7.5-19.el8 AppStream 522 k
Enabling module streams:
javapackages-runtime 201801
Installing Groups:
Java Platform
Transaction Summary
================================================================================
Install 11 Packages
Total download size: 37 M
Installed size: 122 M
Is this ok [y/N]: y
Downloading Packages:
(1/11): copy-jdk-configs-4.0-2.el8.noarch.rpm 1.6 MB/s | 31 kB 00:00
(2/11): java-1.8.0-openjdk-1.8.0.322.b06-11.el8 4.0 MB/s | 346 kB 00:00
(3/11): icedtea-web-1.8.4-4.el8.x86_64.rpm 19 MB/s | 1.7 MB 00:00
(4/11): javapackages-filesystem-5.3.0-1.module+ 267 kB/s | 30 kB 00:00
(5/11): javapackages-tools-5.3.0-1.module+el8+2 394 kB/s | 44 kB 00:00
(6/11): tagsoup-1.2.1-15.el8.noarch.rpm 843 kB/s | 118 kB 00:00
(7/11): ttmkfdir-3.0.9-54.el8.x86_64.rpm 405 kB/s | 62 kB 00:00
(8/11): tzdata-java-2022a-1.el8.noarch.rpm 1.7 MB/s | 191 kB 00:00
(9/11): lksctp-tools-1.0.18-3.el8.x86_64.rpm 881 kB/s | 100 kB 00:00
(10/11): java-1.8.0-openjdk-headless-1.8.0.322. 59 MB/s | 34 MB 00:00
(11/11): xorg-x11-fonts-Type1-7.5-19.el8.noarch 2.1 MB/s | 522 kB 00:00
--------------------------------------------------------------------------------
Total 62 MB/s | 37 MB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Running scriptlet: copy-jdk-configs-4.0-2.el8.noarch 1/1
Running scriptlet: java-1.8.0-openjdk-headless-1:1.8.0.322.b06-11.el8.x 1/1
Preparing : 1/1
Installing : javapackages-filesystem-5.3.0-1.module+el8+2447+6f 1/11
Installing : lksctp-tools-1.0.18-3.el8.x86_64 2/11
Running scriptlet: lksctp-tools-1.0.18-3.el8.x86_64 2/11
Installing : tzdata-java-2022a-1.el8.noarch 3/11
Installing : ttmkfdir-3.0.9-54.el8.x86_64 4/11
Installing : xorg-x11-fonts-Type1-7.5-19.el8.noarch 5/11
Running scriptlet: xorg-x11-fonts-Type1-7.5-19.el8.noarch 5/11
Installing : copy-jdk-configs-4.0-2.el8.noarch 6/11
Installing : java-1.8.0-openjdk-headless-1:1.8.0.322.b06-11.el8 7/11
Running scriptlet: java-1.8.0-openjdk-headless-1:1.8.0.322.b06-11.el8 7/11
Installing : java-1.8.0-openjdk-1:1.8.0.322.b06-11.el8.x86_64 8/11
Running scriptlet: java-1.8.0-openjdk-1:1.8.0.322.b06-11.el8.x86_64 8/11
Installing : javapackages-tools-5.3.0-1.module+el8+2447+6f56d9a 9/11
Installing : tagsoup-1.2.1-15.el8.noarch 10/11
Installing : icedtea-web-1.8.4-4.el8.x86_64 11/11
Running scriptlet: icedtea-web-1.8.4-4.el8.x86_64 11/11
Running scriptlet: copy-jdk-configs-4.0-2.el8.noarch 11/11
Running scriptlet: java-1.8.0-openjdk-headless-1:1.8.0.322.b06-11.el8 11/11
Running scriptlet: java-1.8.0-openjdk-1:1.8.0.322.b06-11.el8.x86_64 11/11
Running scriptlet: icedtea-web-1.8.4-4.el8.x86_64 11/11
Verifying : copy-jdk-configs-4.0-2.el8.noarch 1/11
Verifying : icedtea-web-1.8.4-4.el8.x86_64 2/11
Verifying : java-1.8.0-openjdk-1:1.8.0.322.b06-11.el8.x86_64 3/11
Verifying : java-1.8.0-openjdk-headless-1:1.8.0.322.b06-11.el8 4/11
Verifying : javapackages-filesystem-5.3.0-1.module+el8+2447+6f 5/11
Verifying : javapackages-tools-5.3.0-1.module+el8+2447+6f56d9a 6/11
Verifying : tagsoup-1.2.1-15.el8.noarch 7/11
Verifying : ttmkfdir-3.0.9-54.el8.x86_64 8/11
Verifying : tzdata-java-2022a-1.el8.noarch 9/11
Verifying : xorg-x11-fonts-Type1-7.5-19.el8.noarch 10/11
Verifying : lksctp-tools-1.0.18-3.el8.x86_64 11/11
Installed products updated.
Installed:
copy-jdk-configs-4.0-2.el8.noarch
icedtea-web-1.8.4-4.el8.x86_64
java-1.8.0-openjdk-1:1.8.0.322.b06-11.el8.x86_64
java-1.8.0-openjdk-headless-1:1.8.0.322.b06-11.el8.x86_64
javapackages-filesystem-5.3.0-1.module+el8+2447+6f56d9a6.noarch
javapackages-tools-5.3.0-1.module+el8+2447+6f56d9a6.noarch
lksctp-tools-1.0.18-3.el8.x86_64
tagsoup-1.2.1-15.el8.noarch
ttmkfdir-3.0.9-54.el8.x86_64
tzdata-java-2022a-1.el8.noarch
xorg-x11-fonts-Type1-7.5-19.el8.noarch
Complete!
[root@alexw-device ~]# hostnamectl # 确定系统版本
Static hostname: alexw-device
Pretty hostname: alexw_device
Icon name: computer-vm
Chassis: vm
Virtualization: vmware
Operating System: Red Hat Enterprise Linux 8.2 (Ootpa)
CPE OS Name: cpe:/o:redhat:enterprise_linux:8.2:GA
Kernel: Linux 4.18.0-193.el8.x86_64
Architecture: x86-64
############### 修改my.repo ###################
[AppStream]
name=AppStream
baseurl=http://192.168.1.150/iso/AppStream
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
enabled=1
[BaseOS]
name=BaseOS
baseurl=http://192.168.1.150/iso/BaseOS
gpgcheck=0
[epel]
name=epel
baseurl=https://mirrors.aliyun.com/epel-archive/8.2.2020-11-04/Everything/x86_64
gpgcheck=0
如果要用最新版本仓库(系统版本8.6的) 配置如图:
dnf仅下载
[root@alexw-device ~]# mkdir /var/www/html/soft
[root@alexw-device ~]# ll /var/www/html/soft
total 0
[root@alexw-device ~]# dnf search chrome
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:19:52 ago on Wed 16 Nov 2022 09:48:34 PM CST.
======================== Name & Summary Matched: chrome ========================
chromedriver.x86_64 : WebDriver for Google Chrome/Chromium
chrome-remote-desktop.x86_64 : Remote desktop support for google-chrome &
: chromium
============================= Name Matched: chrome =============================
chrome-gnome-shell.x86_64 : Support for managing GNOME Shell Extensions through
: web browsers
mathjax-winchrome-fonts.noarch : Fonts used by MathJax to display math in the
: browser
=========================== Summary Matched: chrome ============================
webextension-token-signing.x86_64 : Chrome and Firefox extension for signing
: with your eID on the web
[root@alexw-device ~]# dnf install chromedriver.x86_64 --downloadonly --destdir /var/www/html/soft
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:20:24 ago on Wed 16 Nov 2022 09:48:34 PM CST.
Dependencies resolved.
================================================================================
Package Architecture Version Repository Size
================================================================================
Installing:
chromedriver x86_64 85.0.4183.121-1.el8 epel 9.3 M
Installing dependencies:
chromium-common x86_64 85.0.4183.121-1.el8 epel 16 M
libbsd x86_64 0.9.1-4.el8 epel 106 k
minizip x86_64 2.8.9-2.el8 epel 124 k
minizip1.2 x86_64 1.2.11-24.el8 epel 32 k
Transaction Summary
================================================================================
Install 5 Packages
Total download size: 25 M
Installed size: 106 M
DNF will only download packages for the transaction.
Is this ok [y/N]: y
Downloading Packages:
(1/5): libbsd-0.9.1-4.el8.x86_64.rpm 184 kB/s | 106 kB 00:00
(2/5): minizip-2.8.9-2.el8.x86_64.rpm 237 kB/s | 124 kB 00:00
(3/5): minizip1.2-1.2.11-24.el8.x86_64.rpm 77 kB/s | 32 kB 00:00
(4/5): chromedriver-85.0.4183.121-1.el8.x86_64. 2.1 MB/s | 9.3 MB 00:04
(5/5): chromium-common-85.0.4183.121-1.el8.x86_ 3.1 MB/s | 16 MB 00:05
--------------------------------------------------------------------------------
Total 5.0 MB/s | 25 MB 00:05
Complete!
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
创建内网repo
[root@alexw-device ~]# dnf install createrepo -y
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:02:14 ago on Wed 16 Nov 2022 10:21:34 PM CST.
Dependencies resolved.
================================================================================
Package Architecture Version Repository Size
================================================================================
Installing:
createrepo_c x86_64 0.17.7-5.el8 AppStream 89 k
Installing dependencies:
createrepo_c-libs x86_64 0.17.7-5.el8 AppStream 116 k
drpm x86_64 0.4.1-3.el8 AppStream 68 k
libmodulemd x86_64 2.13.0-1.el8 BaseOS 233 k
Transaction Summary
================================================================================
Install 4 Packages
Total download size: 507 k
Installed size: 1.3 M
Downloading Packages:
(1/4): createrepo_c-0.17.7-5.el8.x86_64.rpm 2.6 MB/s | 89 kB 00:00
(2/4): drpm-0.4.1-3.el8.x86_64.rpm 1.4 MB/s | 68 kB 00:00
(3/4): createrepo_c-libs-0.17.7-5.el8.x86_64.rp 2.3 MB/s | 116 kB 00:00
(4/4): libmodulemd-2.13.0-1.el8.x86_64.rpm 13 MB/s | 233 kB 00:00
--------------------------------------------------------------------------------
Total 9.6 MB/s | 507 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : libmodulemd-2.13.0-1.el8.x86_64 1/4
Installing : drpm-0.4.1-3.el8.x86_64 2/4
Installing : createrepo_c-libs-0.17.7-5.el8.x86_64 3/4
Installing : createrepo_c-0.17.7-5.el8.x86_64 4/4
Running scriptlet: createrepo_c-0.17.7-5.el8.x86_64 4/4
Verifying : createrepo_c-0.17.7-5.el8.x86_64 1/4
Verifying : createrepo_c-libs-0.17.7-5.el8.x86_64 2/4
Verifying : drpm-0.4.1-3.el8.x86_64 3/4
Verifying : libmodulemd-2.13.0-1.el8.x86_64 4/4
Installed products updated.
Installed:
createrepo_c-0.17.7-5.el8.x86_64 createrepo_c-libs-0.17.7-5.el8.x86_64
drpm-0.4.1-3.el8.x86_64 libmodulemd-2.13.0-1.el8.x86_64
Complete!
[root@alexw-device ~]# createrepo -v /var/www/html/soft # 这一步会默认清空当前已存在的文件夹
22:24:12: Version: 0.17.7 (Features: DeltaRPM LegacyWeakdeps )
22:24:12: Signal handler setup
22:24:12: Thread pool ready
Directory walk started
22:24:12: Dir to scan: /var/www/html/soft/.repodata
22:24:12: Package count: 0
Directory walk done - 0 packages
Temporary output repo path: /var/www/html/soft/.repodata/
22:24:12: Creating .xml.gz files
22:24:12: Setting number of packages
Preparing sqlite DBs
22:24:12: Creating databases
22:24:12: Thread pool user data ready
Pool started (with 5 workers)
Pool finished
22:24:12: Generating repomd.xml
22:24:12: Old repodata doesn't exists: Cannot rename /var/www/html/soft/repodata/ -> /var/www/html/soft/repodata.old.54273.20221116222412.896430: No such file or directory
22:24:12: Renamed /var/www/html/soft/.repodata/ -> /var/www/html/soft/repodata/
22:24:12: Memory cleanup
22:24:12: All done
[root@alexw-device ~]# ll /var/www/html/soft
total 4
drwxr-xr-x. 2 root root 4096 Nov 16 22:24 repodata
[root@alexw-device ~]# dnf install chromedriver.x86_64 --downloadonly --destdir /var/www/html/soft
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:03:32 ago on Wed 16 Nov 2022 10:21:34 PM CST.
Dependencies resolved.
================================================================================
Package Architecture Version Repository Size
================================================================================
Installing:
chromedriver x86_64 85.0.4183.121-1.el8 epel 9.3 M
Installing dependencies:
chromium-common x86_64 85.0.4183.121-1.el8 epel 16 M
libbsd x86_64 0.9.1-4.el8 epel 106 k
minizip x86_64 2.8.9-2.el8 epel 124 k
minizip1.2 x86_64 1.2.11-24.el8 epel 32 k
Transaction Summary
================================================================================
Install 5 Packages
Total download size: 25 M
Installed size: 106 M
DNF will only download packages for the transaction.
Is this ok [y/N]: y
Downloading Packages:
(1/5): libbsd-0.9.1-4.el8.x86_64.rpm 1.2 MB/s | 106 kB 00:00
(2/5): minizip-2.8.9-2.el8.x86_64.rpm 802 kB/s | 124 kB 00:00
(3/5): minizip1.2-1.2.11-24.el8.x86_64.rpm 418 kB/s | 32 kB 00:00
(4/5): chromedriver-85.0.4183.121-1.el8.x86_64. 2.6 MB/s | 9.3 MB 00:03
(5/5): chromium-common-85.0.4183.121-1.el8.x86_ 3.6 MB/s | 16 MB 00:04
--------------------------------------------------------------------------------
Total 5.8 MB/s | 25 MB 00:04
Complete!
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
测试
[root@alexw-device ~]# vim /etc/yum.repos.d/my.repo
[root@alexw-device ~]# cat /etc/yum.repos.d/my.repo
[AppStream]
enabled=0 # 关闭这个源
name=AppStream
baseurl=http://192.168.1.150/iso/AppStream
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[BaseOS]
enabled=0 # 关闭这个源
name=BaseOS
baseurl=http://192.168.1.150/iso/BaseOS
gpgcheck=0
[epel]
enabled=0 # 关闭这个源
name=epel
baseurl=https://mirrors.aliyun.com/epel-archive/8.2.2020-11-04/Everything/x86_64
gpgcheck=0
[chrome_driver]
enabled=1
name=chrome_driver
baseurl=http://192.168.1.150/soft
gpgcheck=0
[root@alexw-device ~]# dnf clean all
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
27 files removed
[root@alexw-device ~]# dnf search chrome
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
chrome_driver 251 kB/s | 257 B 00:00
============================= Name Matched: chrome =============================
chrome-gnome-shell.x86_64 : Support for managing GNOME Shell Extensions through
: web browsers