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!

✈推荐阅读:

相关文章
|
Ubuntu Linux
计算机基础知识:linux系统怎么安装?
在虚拟机软件中创建一个新的虚拟机,并选择相应操作系统类型和硬盘空间大小等参数。将下载的 ISO 镜像文件加载到虚拟机中。启动虚拟机,进入安装界面,并按照步骤进行安装。安装完成后,可以在虚拟机中使用 Linux 系统。
|
安全 Linux iOS开发
Nessus Professional 10.10 Auto Installer for RHEL 10, AlmaLinux 10, Rocky Linux 10 - Nessus 自动化安装程序
Nessus Professional 10.10 Auto Installer for RHEL 10, AlmaLinux 10, Rocky Linux 10 - Nessus 自动化安装程序
1064 6
Nessus Professional 10.10 Auto Installer for RHEL 10, AlmaLinux 10, Rocky Linux 10 - Nessus 自动化安装程序
|
网络协议 关系型数据库 Linux
【App Service Linux】在Linux App Service中安装 tcpdump 并抓取网络包
在App Service for Linux环境中,无法像Windows一样直接使用网络排查工具抓包。本文介绍了如何通过TCPDUMP在Linux环境下抓取网络包,包括SSH进入容器、安装tcpdump、执行抓包命令及下载分析文件的完整操作步骤。
689 5
|
Ubuntu 安全 Linux
Linux Docker & Docker Compose 一键安装
该脚本由轩辕镜像官方维护,支持多种Linux发行版,可一键安装Docker与docker-compose,并自动配置镜像加速源。脚本开源、安全、高效,适用于Ubuntu、CentOS等系统,内置国内镜像源,提升下载速度,同时提供一键回滚功能,保障安装稳定性。
5115 1
|
消息中间件 Kafka Linux
Linux下安装Kafka 3.9.1
本文介绍Kafka 3.9.1版本的安装与配置,包括通过ZooKeeper或KRaft模式启动Kafka。涵盖环境变量设置、日志路径修改、集群UUID生成、存储格式化及服务启停操作,适用于Linux环境下的部署实践。
1619 0
|
弹性计算 安全 Linux
阿里云服务器ECS安装宝塔Linux面板、安装网站(新手图文教程)
本教程详解如何在阿里云服务器上安装宝塔Linux面板,涵盖ECS服务器手动安装步骤,包括系统准备、远程连接、安装命令执行、端口开放及LNMP环境部署,手把手引导用户快速搭建网站环境。
|
Ubuntu 安全 Linux
Linux这5款微型发行版,体积小+精简,比win7运行还快,值得安装
以上5款微型发行版体积小且精简,如果你有台旧电脑,不妨试试?
|
安全 Ubuntu Linux
如何安装Linux操作系统?
此时,您可以选择重新启动计算机,然后从硬盘上的Linux系统启动。以上是一个大致的安装过程。请注意,不同的Linux发行版可能会在细节上有所差异,因此在进行安装之前,请确保您阅读并理解了相应发行版的安装指南或文档。
|
Ubuntu Linux 数据安全/隐私保护
Win10安装Linux子系统教程!如何在Win10系统中安装Ubuntu!
登录系统后,输入cd /返回上一级,然后再输入“ls”查看一下系统文件目录,看看对不对!
|
Ubuntu Linux Shell
手把手教你安装适用于Linux的Windows子系统——Ubuntu
重启完成,你看看重新打开Ubuntu是不是发生了变化,等待几分钟,系统配置完成,根据提示设置用户名和密码即可