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.repoChange
enabled=0toenabled=10means disabled,1means enabledExplanation of other parameters#
1. `gpgcheck=1` integrity check 2. `baseurl=file:///media/cdrom` file address `file://` indicates local path 3. `[source name]` 4. `name=source 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/inittabfilesystemctl set-default graphical.targetAfter setting, restart:
init 6 -
Install libreoffice
yum -y install libreoffice*
Additional experiment: Try installing the kde desktop environment
Check software packages with yum grouplist