linux httpd升级(update)安装

简介: linux httpd升级(update)安装

httpd离线升级

old-version:

  • httpd-2.4.6-95.el7.centos.x86_64.rpm

new-version:

  • httpd-2.4.6-97.el7.centos.x86_64.rpm
已经安装的旧版本
===========================================================================================================================================
 Package                   Arch                 Version                              Repository                                       Size
===========================================================================================================================================
Installing:
 httpd                     x86_64               2.4.6-95.el7.centos                  /httpd-2.4.6-95.el7.centos.x86_64               9.4 M
Installing for dependencies:
 apr                       x86_64               1.4.8-7.el7                          base                                            104 k
 apr-util                  x86_64               1.5.2-6.el7                          base                                             92 k
 httpd-tools               x86_64               2.4.6-95.el7.centos                  base                                             93 k
 mailcap                   noarch               2.1.41-2.el7                         base                                             31 k
Transaction Summary
===========================================================================================================================================

需要更新的版本 及依赖关系

[root@agent1 httpd]# pwd 
/opt/httpd
[root@agent1 httpd]# ll 
total 2880
-rw-r--r--. 1 root root 2847412 Jan 25 22:54 httpd-2.4.6-97.el7.centos.4.x86_64.rpm
-rw-r--r--. 1 root root   96276 Jan 25 22:54 httpd-tools-2.4.6-97.el7.centos.4.x86_64.rpm
[root@agent1 httpd]# createrepo . 
Spawning worker 0 with 2 pkgs
Workers Finished
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
[root@agent1 httpd]# ll
total 2884
-rw-r--r--. 1 root root 2847412 Jan 25 22:54 httpd-2.4.6-97.el7.centos.4.x86_64.rpm
-rw-r--r--. 1 root root   96276 Jan 25 22:54 httpd-tools-2.4.6-97.el7.centos.4.x86_64.rpm
drwxr-xr-x. 2 root root    4096 Feb  8 13:08 repodata
[root@agent1 yum.repos.d]# pwd 
/etc/yum.repos.d
[root@agent1 yum.repos.d]# cat httpd.repo 
[httpd]
name=httpd - Plus
baseurl=file:///opt/httpd
gpgcheck=0
enabled=1
[root@agent1 yum.repos.d]# yum repolist httpd 
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * centos-sclo-rh: mirrors.huaweicloud.com
 * centos-sclo-sclo: mirrors.aliyun.com
 * epel: mirror.sjtu.edu.cn
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
repo id                                                         repo name                                                            status
httpd                                                           httpd - Plus                                                         2
repolist: 2
[root@agent1 yum.repos.d]# yum update httpd --enablerepo=httpd 
#我此处使用的是update, 使用install也是可以的。
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * centos-sclo-rh: mirrors.huaweicloud.com
 * centos-sclo-sclo: mirrors.aliyun.com
 * epel: mirror.sjtu.edu.cn
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.4.6-95.el7.centos will be updated
---> Package httpd.x86_64 0:2.4.6-97.el7.centos.4 will be an update
--> Processing Dependency: httpd-tools = 2.4.6-97.el7.centos.4 for package: httpd-2.4.6-97.el7.centos.4.x86_64
--> Running transaction check
---> Package httpd-tools.x86_64 0:2.4.6-95.el7.centos will be updated
---> Package httpd-tools.x86_64 0:2.4.6-97.el7.centos.4 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
===========================================================================================================================================
 Package                          Arch                        Version                                     Repository                  Size
===========================================================================================================================================
Updating:
 httpd                            x86_64                      2.4.6-97.el7.centos.4                       httpd                      2.7 M
Updating for dependencies:
 httpd-tools                      x86_64                      2.4.6-97.el7.centos.4                       httpd                       94 k
Transaction Summary
===========================================================================================================================================
Upgrade  1 Package (+1 Dependent package)
Total download size: 2.8 M
Is this ok [y/d/N]: y
Downloading packages:
-------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                      166 MB/s | 2.8 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : httpd-tools-2.4.6-97.el7.centos.4.x86_64                                                                                1/4 
  Updating   : httpd-2.4.6-97.el7.centos.4.x86_64                                                                                      2/4 
  Cleanup    : httpd-2.4.6-95.el7.centos.x86_64                                                                                        3/4 
  Cleanup    : httpd-tools-2.4.6-95.el7.centos.x86_64                                                                                  4/4 
  Verifying  : httpd-tools-2.4.6-97.el7.centos.4.x86_64                                                                                1/4 
  Verifying  : httpd-2.4.6-97.el7.centos.4.x86_64                                                                                      2/4 
  Verifying  : httpd-tools-2.4.6-95.el7.centos.x86_64                                                                                  3/4 
  Verifying  : httpd-2.4.6-95.el7.centos.x86_64                                                                                        4/4 
Updated:
  httpd.x86_64 0:2.4.6-97.el7.centos.4                                                                                                     
Dependency Updated:
  httpd-tools.x86_64 0:2.4.6-97.el7.centos.4                                                                                               
Complete!

✈推荐阅读:

相关文章
|
18天前
|
NoSQL 关系型数据库 Redis
mall在linux环境下的部署(基于Docker容器),Docker安装mysql、redis、nginx、rabbitmq、elasticsearch、logstash、kibana、mongo
mall在linux环境下的部署(基于Docker容器),docker安装mysql、redis、nginx、rabbitmq、elasticsearch、logstash、kibana、mongodb、minio详细教程,拉取镜像、运行容器
mall在linux环境下的部署(基于Docker容器),Docker安装mysql、redis、nginx、rabbitmq、elasticsearch、logstash、kibana、mongo
|
17天前
|
Ubuntu Linux Shell
Linux系统命令 安装和文件相关命令
本文档详细介绍了Linux系统中的常用命令,包括软件安装卸载命令如`dpkg`和`apt-get`,压缩与解压命令如`gzip`、`bzip2`和`xz`,以及`tar`命令用于打包和解包。此外还介绍了文件分割命令`split`,文件操作命令如`cat`、`head`、`tail`、`more`、`less`等,管道命令和`wc`、`grep`、`find`、`cut`、`sort`、`uniq`、`diff`等实用工具。最后,文档还讲解了文件属性相关的命令如`chmod`、`chown`、`chgrp`以及创建硬链接和软链接的`ln`命令。
|
23天前
|
Linux TensorFlow 算法框架/工具
在Linux上安装其他版本的cmake 或 升级cmake
在Linux上安装其他版本的cmake 或 升级cmake
34 2
|
23天前
|
人工智能 Linux 开发工具
Linux安装Taiyi stable-diffusion-webui
Linux安装Taiyi stable-diffusion-webui
|
24天前
|
Ubuntu Linux 虚拟化
安装Windows Linux 子系统的方法:适用于windows 11 版本
本文提供了在Windows 11系统上安装Linux子系统(WSL)的详细步骤,包括启用子系统和虚拟化功能、从Microsoft Store安装Linux发行版、设置WSL默认版本、安装WSL2补丁,以及完成Ubuntu的首次安装设置。
65 2
|
28天前
|
关系型数据库 MySQL Linux
Linux环境安装MySQL8.0.36使用rpm包安装,安装顺序是什么?
【8月更文挑战第23天】Linux环境安装MySQL8.0.36使用rpm包安装,安装顺序是什么?
136 1
|
27天前
|
关系型数据库 Linux PostgreSQL
【Azure 应用服务】Azure Function App Linux环境下的Python Function,安装 psycopg2 模块错误
【Azure 应用服务】Azure Function App Linux环境下的Python Function,安装 psycopg2 模块错误
|
27天前
|
存储 安全 Linux
【Azure 应用服务】App Service For Linux 怎么安装Composer,怎么安装PHP扩展,怎么来修改站点根路径启动程序?
【Azure 应用服务】App Service For Linux 怎么安装Composer,怎么安装PHP扩展,怎么来修改站点根路径启动程序?
|
27天前
|
网络协议 Linux Shell
【Azure 应用服务】App Service For Linux 中安装paping, 用于验证从App Service向外请求的网络连通性
【Azure 应用服务】App Service For Linux 中安装paping, 用于验证从App Service向外请求的网络连通性
|
11天前
|
Linux Shell
Linux 中 Tail 命令的 9 个实用示例
Linux 中 Tail 命令的 9 个实用示例
42 6
Linux 中 Tail 命令的 9 个实用示例