linux - 如何从中央服务器直接在本地服务器上安装补丁?

标签 linux unix kernel patch yum

每次我们执行 yum update 时,最新的可用 pkg 将被下载到我们的本地服务器,然后我们就可以开始安装了。是否有机会直接从中央服务器将 pkgs 安装到本地服务器(无需在本地服务器下载 pkgs)?

最佳答案

首先,你应该确保你的远程源服务器配置好,然后你可以去/etc/yum.repos.d配置文件“CentOS-Base.repo”

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?
release=$releasever&arch=$basearch&repo=os
baseurl=http://[**your remote source server**]$releasever/os/$basearch/
gpgcheck=1
gpgkey=file://[**the path of your gpgkey**]

希望对你有用

关于linux - 如何从中央服务器直接在本地服务器上安装补丁?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45392832/

相关文章:

linux - 使用 Cmake 运行 CppuTests

c - C 中的线程安全与原子性

makefile - 修改驱动源码后如何 "make"现有Linux内核模块驱动

linux - 为什么 linux 内核的 Makefile 中的变量不起作用?

linux - Ubuntu 16.4 中的 Elasticsearch 连接错误

php - 我需要重新编译/安装 php 来添加 mssql 扩展吗?

c - 通过 pipe() C 调用与 python 交互的问题

unix - AIX make/makefile : variable assignment is not working

linux - 复制文件扩展名而不保留文件夹结构

c - 为什么 memcpy 和 sprintf 不能在此内核代码中工作?