IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 系统运维 -> Linux系统中RPM管理工具与YUM管理工具的运用 -> 正文阅读

[系统运维]Linux系统中RPM管理工具与YUM管理工具的运用

先用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                     


? 清理缓存


? 重新创建缓存

?

  系统运维 最新文章
配置小型公司网络WLAN基本业务(AC通过三层
如何在交付运维过程中建立风险底线意识,提
快速传输大文件,怎么通过网络传大文件给对
从游戏服务端角度分析移动同步(状态同步)
MySQL使用MyCat实现分库分表
如何用DWDM射频光纤技术实现200公里外的站点
国内顺畅下载k8s.gcr.io的镜像
自动化测试appium
ctfshow ssrf
Linux操作系统学习之实用指令(Centos7/8均
上一篇文章      下一篇文章      查看所有文章
加:2022-04-15 00:46:32  更:2022-04-15 00:51:25 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 -2024/11/15 22:40:30-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码