Software Installation on CentOS (yum installation)#
Prerequisite: Mount the CD first#
mount /dev/cdrom /media/cdrom
-
Configure yum installation environment (local source)
Modify
/etc/yum.repos.d/CentOS-Media.repo
Change
enabled=0
toenabled=1
where0
means disabled and1
means enabledExplanation of other parameters#
1. `gpgcheck=1` integrity check 2. `baseurl=file:///media/cdrom` file address `file://` indicates local path 3. `[Repository Name]` 4. `name=Repository Name`
-
Install vim tool
yum -y install vim (software name)
-
Install CentOS desktop environment (Gnome)
yum -y groupinstall "X Windows System" yum -y groupinstall "GNOME Desktop"
-
Set default run level by checking
/etc/inittab
filesystemctl set-default graphical.target
After setting, restart:
init 6
-
Install libreoffice
yum -y install libreoffice*
Additional experiment: Try installing the KDE desktop environment
Check software packages with yum grouplist