大势趋007

每个人都是🏆 时时刻刻::::: 1 新的技术经常性尝试,经常性测试;;;;; 2 一线dba的经常性操作和总结,二线技术的经常性思考
  新随笔  :: 管理

yum配置本地光盘

Posted on 2026-02-02 14:57  大势趋007  阅读(0)  评论(0)    收藏  举报
--提前网络配置
[root@redhatos network-scripts]# more ifcfg-enp0s8
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=enp0s8
UUID=1b7fb098-6a93-49f9-ab5c-1a8bc3728073
DEVICE=enp0s8
IPADDR=192.168.56.131
GATEWAY=192.168.56.1
ONBOOT=yes
[root@redhatos network-scripts]# 


mkdir -p /media/os
mount -o loop  /dev/cdrom /media/os
cd /etc/yum.repos.d/
tar -cvf `hostname`.bk.tar .
mv `hostname`.bk.tar ../
cd
echo "[ora8.6]             
name=ora8.6
baseurl=file:///media/os/AppStream
enabled=1            
gpgcheck=0

[orabase8.6]             
name=orabase8.6
baseurl=file:///media/os/BaseOS
enabled=1            
gpgcheck=0" > /etc/yum.repos.d/cdbase.repo 

yum clean all
yum update

 其他yum源收集

curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache

 

安装工具,使用更加简单

[root@redhatos os]# ./VBoxLinuxAdditions.run
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.2.2 Guest Additions for Linux  100%  
VirtualBox Guest Additions installer
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up modules
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 
4.18.0-372.9.1.el8.x86_64.
VirtualBox Guest Additions: reloading kernel modules and services
VirtualBox Guest Additions: kernel modules and services 7.2.2 r170484 reloaded
VirtualBox Guest Additions: NOTE: you may still consider to re-login if some 
user session specific services (Shared Clipboard, Drag and Drop, Seamless or 
Guest Screen Resize) were not restarted automatically
[root@redhatos os]# 
[root@redhatos os]# 
[root@redhatos os]# 
[root@redhatos os]# reboot

积累中