当前位置: 首页 > news >正文

how create rhel8 local repository server

Repository Server Configuration

Mount DVD.iso. Create DVD repo.

[BaseOS]
name=DVD_BaseOS
enabled=1
gpgcheck=0
baseurl=file:///mnt/BaseOS
[AppStream]
name=DVD_AppStream
enabled=1
gpgcheck=0
baseurl=file:///mnt/AppStream
yum install -y createrepo yum-utils bash-completion vim bzip2 java

Disable repo ID of DVD.repo.

yum-config-manager --disable BaseOS
yum-config-manager --disable AppStream

Set Proxy Configuration.

cp /etc/profile ~/
vim /etc/profile

Set RHSM configuration

cp /etc/rhsm/rhsm.conf ~/
vim /etc/rhsm/rhsm.conf
proxy_hostname = 10.10.212.1
proxy_port = 8080

Registering a system for HREL Account.

subscription-manager register
xxxxx
xxxxx
subscription-manager attach --auto
subscription-manager refresh

Update yum Data

yum clean all
yum makecache

View repo list

yum repolist all | grep enabled

Create folder

mkdir -p /home/repo/rhel8

vim patch_download.sh

--#!/bin/bash
reposync -p /home/repo/rhel8/ --download-metadata --repoid=rhel-8-for-x86_64-baseos-rpms
reposync -p /home/repo/rhel8/ --download-metadata --repoid=rhel-8-for-x86_64-appstream-rpms
createrepo --update /home/repo/rhel8/rhel-8-for-x86_64-appstream-rpms/
createrepo --update /home/repo/rhel8/rhel-8-for-x86_64-baseos-rpms/

http://www.jsqmd.com/news/6046/

相关文章:

  • 对称加密和非对称加密原理对比
  • 借助Aspose.Email,使用 Python 读取 Outlook MSG 文件
  • 痞子衡嵌入式:恩智浦i.MX RT1xxx系列MCU启动那些事(11.B)- FlexSPI NOR连接方式大全(RT1180)
  • 文件同步工具深度测评(2025版):同步盘夺冠
  • 20250929周一日记
  • Oracle故障处理:数据库启动时遇到ORA-01578错误
  • 实用指南:梦回童年,将JSNES 游戏模拟器移植到 HarmonyOS 移植指南
  • 单键触控感应芯片 电容是触控IC VKD233HS -永嘉微VINKA 原厂
  • CSS中多种边框的实现小窍门 - 教程
  • 微算法科技(NASDAQ: MLGO)研发基于 DPoS 框架的 DL-DPoS(深度链接委托权益证明)机制,增强区块链的共识算法
  • treap树模板
  • Spring Boot版本1.5.7.RELEASE升级到2.5.14
  • 读者-写者问题
  • 实现邮件发送
  • AGC073C 赛后补题记录
  • LuatOS赋能Air780EPM:FTP通信开发教程正式上线!
  • 深入解析:【深度学习计算机视觉】03:目标检测和边界框
  • DM40万用表为何全网爆火?!它有哪些与众不同?DM40万用表比肩千元级表,让您轻松实现专业级测量自由!
  • 树形dp [POI 2013] LUK-Triumphal arch
  • 【论术】t-design tree组件判断点击了角标还是label
  • Redis基础篇——集成客户端 - 实践
  • leetCode刷题记录1
  • 【Bluedroid】A2DP Source 音频流暂停流程解析[5]:停止流程及资源管理机制(btif_a2dp_source_stop_audio_req) - 教程
  • 完整教程:分布式之抢购
  • k8s下部署kuboard
  • 万象EXCEL开发(三)格式解读calcChain.xml——东方仙盟练气期 - 指南
  • 使用 ShedLock 实现多实例定时任务单执行的常见错误及解决办法
  • [Reprint] - Install Arm GNU Toolchain on Ubuntu 22.04
  • 1_二分查找
  • AI元人文:悟空博弈专用芯片