Step 1: Open the VM, mount the CD image, and select "connected"
Step 2:
DF-hmountumount/dev/sr0mkdir/centosmount/dev/sr0/centosmkdir/centospackagescp-RV/centos/packages/*/centospackagesmkdir/etc/yum. repos. dvim/etc/yum. repos. d/Hist. repocreaterepo/centospackages ==================================== ==================================== if createrepo is not installed, follow these steps to install createrepo = ========================================================== =========================================cd/centospackagesrpm-IVH createrepo-0.9.9-18.el6.noarch.rpm python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm deltarpm-3.5-0.5.20090913git.el6.i686.rpm ========== ========================================================== ======================= Yum clean all
So far, the yum repository has been created.
The following is the command for installing a few small software. [The-y parameter below is used to avoid entering y when installing the software]
yum install wireshark-gnome -yyum install httpd -yyum install vsftpd -yyum install nc -y
Create a yum repository under centos6.5