先用sftp在windowns上远程连接Linux将mongodb-enterprise-server-4.4.4-1.el7.x86_64.rpm文件传输到Linux上
1.使用rpm安装zsh(忽略依赖关系安装)
? 查询是否已安装
? 卸载mongodb-enterprise-server-4.4.4-1.el7.x86_64.rpm
? 查询所有已安装软件
? 查询date命令所在软件包
? 查询未安装的mongodb-enterprise-server-4.4.4-1.el7.x86_64.rpm的文件信息
2.yum本地源配置
?
?挂载在指定目录中
? yum网络源配置
? 安装httpd软件
[root@bogon yum.repos.d]# yum install httpd
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.
Repository AppStream is listed more than once in the configuration
Last metadata expiration check: 0:06:13 ago on Tue 12 Apr 2022 08:20:15 PM CST.
Dependencies resolved.
===============================================================================================
Package Arch Version Repository Size
===============================================================================================
Installing:
httpd x86_64 2.4.37-43.module_el8.5.0+1022+b541f3b1 AppStream 1.4 M
Installing dependencies:
centos-logos-httpd noarch 85.8-2.el8 base 75 k
apr x86_64 1.6.3-12.el8 AppStream 129 k
apr-util x86_64 1.6.1-6.el8 AppStream 105 k
httpd-filesystem noarch 2.4.37-43.module_el8.5.0+1022+b541f3b1 AppStream 39 k
httpd-tools x86_64 2.4.37-43.module_el8.5.0+1022+b541f3b1 AppStream 107 k
mod_http2 x86_64 1.15.7-3.module_el8.4.0+778+c970deab AppStream 154 k
Installing weak dependencies:
apr-util-bdb x86_64 1.6.1-6.el8 AppStream 25 k
apr-util-openssl x86_64 1.6.1-6.el8 AppStream 27 k
Enabling module streams:
httpd 2.4
Transaction Summary
===============================================================================================
Install 9 Packages
Total download size: 2.1 M
Installed size: 5.6 M
Is this ok [y/N]: Y^H^H^H^Hq^H^H
Is this ok [y/N]: y
Downloading Packages:
(1/9): apr-util-1.6.1-6.el8.x86_64.rpm 759 kB/s | 105 kB 00:00
(2/9): apr-1.6.3-12.el8.x86_64.rpm 883 kB/s | 129 kB 00:00
(3/9): centos-logos-httpd-85.8-2.el8.noarch.rpm 440 kB/s | 75 kB 00:00
(4/9): apr-util-openssl-1.6.1-6.el8.x86_64.rpm 618 kB/s | 27 kB 00:00
(5/9): apr-util-bdb-1.6.1-6.el8.x86_64.rpm 449 kB/s | 25 kB 00:00
(6/9): httpd-tools-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 1.0 MB/s | 107 kB 00:00
(7/9): httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.n 224 kB/s | 39 kB 00:00
(8/9): httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64.rpm 5.4 MB/s | 1.4 MB 00:00
(9/9): mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64.rpm 969 kB/s | 154 kB 00:00
-------------------------------------------------------------------------------------------------
Total 4.4 MB/s | 2.1 MB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : apr-1.6.3-12.el8.x86_64 1/9
Running scriptlet: apr-1.6.3-12.el8.x86_64 1/9
Installing : apr-util-bdb-1.6.1-6.el8.x86_64 2/9
Installing : apr-util-openssl-1.6.1-6.el8.x86_64 3/9
Installing : apr-util-1.6.1-6.el8.x86_64 4/9
Running scriptlet: apr-util-1.6.1-6.el8.x86_64 4/9
Installing : httpd-tools-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 5/9
Running scriptlet: httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.noarch 6/9
Installing : httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.noarch 6/9
Installing : centos-logos-httpd-85.8-2.el8.noarch 7/9
Installing : mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64 8/9
Installing : httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 9/9
Running scriptlet: httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 9/9
Verifying : centos-logos-httpd-85.8-2.el8.noarch 1/9
Verifying : apr-1.6.3-12.el8.x86_64 2/9
Verifying : apr-util-1.6.1-6.el8.x86_64 3/9
Verifying : apr-util-bdb-1.6.1-6.el8.x86_64 4/9
Verifying : apr-util-openssl-1.6.1-6.el8.x86_64 5/9
Verifying : httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 6/9
Verifying : httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.noarch 7/9
Verifying : httpd-tools-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 8/9
Verifying : mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64 9/9
Installed products updated.
Installed:
httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64
apr-util-bdb-1.6.1-6.el8.x86_64
apr-util-openssl-1.6.1-6.el8.x86_64
centos-logos-httpd-85.8-2.el8.noarch
apr-1.6.3-12.el8.x86_64
apr-util-1.6.1-6.el8.x86_64
httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.noarch
httpd-tools-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64
mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64
Complete!
? 查看vim命令属于哪个软件包
[root@bogon yum.repos.d]# yum provides vim
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.
Repository AppStream is listed more than once in the configuration
Last metadata expiration check: 0:54:52 ago on Tue 12 Apr 2022 08:20:15 PM CST.
vim-enhanced-2:8.0.1763-13.el8.x86_64 : A version of the VIM editor which includes recent
: enhancements
Repo : @System
Matched from:
Provide : vim = 8.0.1763-13.el8
vim-enhanced-2:8.0.1763-16.el8.x86_64 : A version of the VIM editor which includes recent
: enhancements
Repo : AppStream
Matched from:
Provide : vim = 8.0.1763-16.el8
[root@bogon yum.repos.d]# yum remove httpd
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.
Repository AppStream is listed more than once in the configuration
Dependencies resolved.
===============================================================================================
Package Arch Version Repository Size
===============================================================================================
Removing:
httpd x86_64 2.4.37-43.module_el8.5.0+1022+b541f3b1 @AppStream 4.3 M
Removing unused dependencies:
apr x86_64 1.6.3-12.el8 @AppStream 272 k
apr-util x86_64 1.6.1-6.el8 @AppStream 231 k
apr-util-bdb x86_64 1.6.1-6.el8 @AppStream 12 k
apr-util-openssl x86_64 1.6.1-6.el8 @AppStream 20 k
centos-logos-httpd noarch 85.8-2.el8 @base 197 k
httpd-filesystem noarch 2.4.37-43.module_el8.5.0+1022+b541f3b1 @AppStream 400
httpd-tools x86_64 2.4.37-43.module_el8.5.0+1022+b541f3b1 @AppStream 193 k
mod_http2 x86_64 1.15.7-3.module_el8.4.0+778+c970deab @AppStream 394 k
Transaction Summary
===============================================================================================
Remove 9 Packages
Freed space: 5.6 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 1/1
Running scriptlet: httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 1/9
Erasing : httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 1/9
Running scriptlet: httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 1/9
Erasing : httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.noarch 2/9
Running scriptlet: httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.noarch 2/9
Erasing : centos-logos-httpd-85.8-2.el8.noarch 3/9
Erasing : httpd-tools-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 4/9
Erasing : apr-util-1.6.1-6.el8.x86_64 5/9
Running scriptlet: apr-util-1.6.1-6.el8.x86_64 5/9
Erasing : apr-1.6.3-12.el8.x86_64 6/9
Running scriptlet: apr-1.6.3-12.el8.x86_64 6/9
Erasing : apr-util-bdb-1.6.1-6.el8.x86_64 7/9
Erasing : apr-util-openssl-1.6.1-6.el8.x86_64 8/9
Erasing : mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64 9/9
Running scriptlet: mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64 9/9
Verifying : apr-1.6.3-12.el8.x86_64 1/9
Verifying : apr-util-1.6.1-6.el8.x86_64 2/9
Verifying : apr-util-bdb-1.6.1-6.el8.x86_64 3/9
Verifying : apr-util-openssl-1.6.1-6.el8.x86_64 4/9
Verifying : centos-logos-httpd-85.8-2.el8.noarch 5/9
Verifying : httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 6/9
Verifying : httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.noarch 7/9
Verifying : httpd-tools-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 8/9
Verifying : mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64 9/9
Installed products updated.
Removed:
httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64
apr-1.6.3-12.el8.x86_64
apr-util-1.6.1-6.el8.x86_64
apr-util-bdb-1.6.1-6.el8.x86_64
apr-util-openssl-1.6.1-6.el8.x86_64
centos-logos-httpd-85.8-2.el8.noarch
httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.noarch
httpd-tools-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64
mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64
? yum卸载httpd
[root@bogon yum.repos.d]# yum remove httpd
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.
Repository AppStream is listed more than once in the configuration
Dependencies resolved.
===============================================================================================
Package Arch Version Repository Size
===============================================================================================
Removing:
httpd x86_64 2.4.37-43.module_el8.5.0+1022+b541f3b1 @AppStream 4.3 M
Removing unused dependencies:
apr x86_64 1.6.3-12.el8 @AppStream 272 k
apr-util x86_64 1.6.1-6.el8 @AppStream 231 k
apr-util-bdb x86_64 1.6.1-6.el8 @AppStream 12 k
apr-util-openssl x86_64 1.6.1-6.el8 @AppStream 20 k
centos-logos-httpd noarch 85.8-2.el8 @base 197 k
httpd-filesystem noarch 2.4.37-43.module_el8.5.0+1022+b541f3b1 @AppStream 400
httpd-tools x86_64 2.4.37-43.module_el8.5.0+1022+b541f3b1 @AppStream 193 k
mod_http2 x86_64 1.15.7-3.module_el8.4.0+778+c970deab @AppStream 394 k
Transaction Summary
===============================================================================================
Remove 9 Packages
Freed space: 5.6 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 1/1
Running scriptlet: httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 1/9
Erasing : httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 1/9
Running scriptlet: httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 1/9
Erasing : httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.noarch 2/9
Running scriptlet: httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.noarch 2/9
Erasing : centos-logos-httpd-85.8-2.el8.noarch 3/9
Erasing : httpd-tools-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 4/9
Erasing : apr-util-1.6.1-6.el8.x86_64 5/9
Running scriptlet: apr-util-1.6.1-6.el8.x86_64 5/9
Erasing : apr-1.6.3-12.el8.x86_64 6/9
Running scriptlet: apr-1.6.3-12.el8.x86_64 6/9
Erasing : apr-util-bdb-1.6.1-6.el8.x86_64 7/9
Erasing : apr-util-openssl-1.6.1-6.el8.x86_64 8/9
Erasing : mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64 9/9
Running scriptlet: mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64 9/9
Verifying : apr-1.6.3-12.el8.x86_64 1/9
Verifying : apr-util-1.6.1-6.el8.x86_64 2/9
Verifying : apr-util-bdb-1.6.1-6.el8.x86_64 3/9
Verifying : apr-util-openssl-1.6.1-6.el8.x86_64 4/9
Verifying : centos-logos-httpd-85.8-2.el8.noarch 5/9
Verifying : httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 6/9
Verifying : httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.noarch 7/9
Verifying : httpd-tools-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 8/9
Verifying : mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64 9/9
Installed products updated.
Removed:
httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64
apr-1.6.3-12.el8.x86_64
apr-util-1.6.1-6.el8.x86_64
apr-util-bdb-1.6.1-6.el8.x86_64
apr-util-openssl-1.6.1-6.el8.x86_64
centos-logos-httpd-85.8-2.el8.noarch
httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.noarch
httpd-tools-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64
mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64
? 清理缓存
? 重新创建缓存
?
|