red hat7.3操作系統升級到7.7

配置本地yum源升級red hat

  • 上傳red hat7.7鏡像到服務器
[root@RTM ISO]# ls
rhel-server-7.7-x86_64-dvd.iso
  • 掛載鏡像到/mnt/目錄
[root@RTM ISO]# mount -o loop rhel-server-7.7-x86_64-dvd.iso /mnt/
mount: /dev/loop0 寫保護,將以只讀方式掛載

  • 創建本地的yum源repo文件
[root@RTM ISO]# vim /etc/yum.repos.d/local.repo
[base]
name=local
baseurl=file:///mnt
gpgcheck=0
enable=1

  • 清理yum源
[root@RTM ISO]# yum clean all
已加載插件:product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
正在清理軟件源: base
Other repos take up 23 M of disk space (use --verbose for details)

[root@RTM ISO]# yum makecache
已加載插件:product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
base                                                                                            | 2.8 kB  00:00:00     
(1/4): base/group_gz                                                                            | 103 kB  00:00:00     
(2/4): base/primary                                                                             | 2.0 MB  00:00:00     
(3/4): base/filelists                                                                           | 3.1 MB  00:00:00     
(4/4): base/other                                                                               | 1.1 MB  00:00:00     
base                                                                                                         5229/5229
base                                                                                                         5229/5229
base                                                                                                         5229/5229
元數據緩存已建立

  • 升級red hat到7.7
[root@RTM ISO]#yum update -y
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章