IMG 1010 - GCEMS - Install Required Packages
This should all be done as a root user.
$su
$Password: excel2 (root password)
Install packages via CentOS Repository \(follow this step if an internet connection is accessible on CentOS server).
[root]# yum install compat\-libstdc\++\-33.i686 kexec\-tools fipscheck device\-mapper\-multipath sgpio perl\-Convert\-ASN1 python\-dmidecode imake emacs libsane\-hpaio tftp\-server freeradius festival audit net\-snmp\-utils mesa\-libGLU\-devel xorg\-x11\-utils httpd vsftpd dhcp tigervnc* wireshark wireshark\-gnome ksh
Install packages via local Yum Repository (follow the steps below if an internet connection is not accessible on CentOS server).
Build a local repository, Download the Everything ISO.
https://www.centos.org/download
Mount your CentOS 7 installation DVD. For example, let us mount the installation media on /mnt directory.
mount /dev/cdrom /mnt/
The CentOS installation DVD is mounted under /mnt directory. Next install vsftpd package and let the packages available over FTP to your local clients.
Change to /mnt/Packages directory.cd /mnt/Packages/
Install vsftpd package, for instance.
rpm -ivh vsftpd-3.0.2-9.el7.x86_64.rpm
Enable and start vsftpd service.
systemctl enable vsftpd systemctl start vsftpd
Create a storage location in our FTP server pub directory.
mkdir /var/ftp/pub/localrepo
Install "createrepo" package, for instance.
rpm -ivh createrepo-0.9.9-23.el7.noarch.rpm
Copy all the files from CentOS DVD(s) (i.e., from /mnt/Packages/ directory to the "localrepo" directory).
cp -ar /mnt/Packages/*.* /var/ftp/pub/localrepo/
Once you copied all the files, create a repository file called "localrepo.repo" under /etc/yum.repos.d/ directory and add the following lines into the file. You can name this file as per your preference.
vi /etc/yum.repos.d/localrepo.repo
Add the following lines:
[localrepo] name=Unixmen Repository baseurl=file:///var/ftp/pub/localrepo gpgcheck=0 enabled=1
Use three slashes (///) in the baseurl.
Start building local repository.
createrepo -v /var/ftp/pub/localrepo/
Clean the yum cache and update the repository lists.
yum clean all
Alternatively, you can install packages only from the local repository by mentioning the repository as shown below.
yum install --disablerepo="*" --enablerepo="localrepo" compat-libstdc++-33.i686 kexec-tools fipscheck device-mapper-multipath sgpio perl-Convert-ASN1 python-dmidecode imake emacs libsane-hpaio tftp-server freeradius festival audit net-snmp-utils mesa-libGLU-devel xorg-x11-utils httpd vsftpd dhcp tigervnc* wireshark wireshark-gnome ksh mysql php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli php-snmp httpd net-snmp-utils php-snmp net-snmp-libs rrdtool net-snmp* gd gd-devel php-gd mariadb-server