做一个软件仓库代码如下

mount /dev/sr0 /mnt  /将虚拟光驱 挂在 /mnt中

vi /etc/yum.repos.d/local.repo /打开挂载的目录

按 【insert】键 进行输入:

[local]

name=local

baseurl=file:///mnt

enabled=1

gpgcheck=0

再按【Esc】键 :wq 进行保存

yum clean all /清除yum软件仓库的信息

yum grouplist 查看yum软件仓库

yum groupinstall -y  "Server with GUI" /安装GUI图形界面

rm /etc/systemd/system/default.target 设置由图形用户界面启动,删除原来的命令窗口
ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target 设置启动

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2021-05-20
  • 2022-02-07
猜你喜欢
  • 2022-01-15
  • 2021-09-04
  • 2021-05-17
  • 2021-12-23
  • 2022-12-23
相关资源
相似解决方案