1. Place the file on a CD
2. Enter the following command as the root user:
mount /dev/sr0 /media
3. Configure the CD as the local Yum Source
Command:
vi /etc/yum.repos.d/local.repo
Press the Insert key to enter the following content:
[local]name=localbaseurl=file:///media/enabled=1gpgcheck=0
Press ESC and enter X or WQ to save the settings (do not miss the input :)
(You can view tutorials online without using vi)
4. Load the yum cache:
yum makecache
Then you find that the operation fails. follow these steps:
mkdir /tmp/repo mv /etc/yum.repos.d/* /tmp/repo mv /tmp/repo/local.repo /etc/yum.repos.d/yum clean all && rm -rf /var/cache/yum/*yum makecache
5,
yum grouplist
The S command shows the installed group:
Minimal install (the minimum installation for LZ is not desktop), GNOME desktop, Kde plasma workspaces, etc.
Choose GNOME desktop or KDE Desktop
Command:
yum groupinstall -y "GNOME Desktop" yum groupinstall -y "KDE Plasma Workspaces"
6. After the installation is complete, set the startup mode to a graphical interface. Previously, it was changed to/etc/inittab. After cat and/etc/inittab, it was found that inittab was changed to systemd, therefore, use the following command:
ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
7,
reboot
The graphic interface is displayed after restart.
PS: Linux Commands include Mount Yum mkdir mV and VI. We recommend that you start with the command and download many good videos from the Internet.
This article from the "Silently Accumulate Small universe" blog, please be sure to keep this source http://tianshoulong.blog.51cto.com/4998102/1571464
How to minimize the absence of a desktop after centos7.0 installation (manually install a graphical desktop)