If you want to install OpenLDAP on the company's server and install the RPM package, a bunch of dependency package errors are reported because it is on a public network virtual machine, if you don't want to make the effort to copy and install the RPM package, you have to build a YUM repository on the ing disc.
The procedure is as follows:
1. Mount the optical drive
# Mount-o loop/dev/sdc/mnt
2. Install the warehouse creation tool
# Rpm-ivh/mnt/Server/createrepo-0.4.4-2.fc6.noarch.rpm
3. Create a package repository folder and create a repository
# Mkdir/var/RHEL5
# Cd/var/RHEL5
# Createrepo.
4. Configure the YUM Client
# Vi/etc/yum. repos. d/server. repo
[RHEL Repository]
Name = RedHat Linux
Baseurl = file: // mnt/Server
Enabled = 1
Gpgcheck = 0
Save and exit
5. Install the RPM package
# Yum install RPM package name
During installation, I reported a warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 37017186 error. It is reasonable that the KEY is not checked in the configuration file, I heard that it is a RHEL bugs. If you ignore so many buckets, you can directly bypass it and use the # yum install -- nogpgcheck RPM package name to install the RPM package.
By using YUM installation, You can automatically install the relevant dependent packages when installing the RPM package.
Appendix:
YUM:
Installation:
Name of the yum install RPM package
Delete:
Name of the yum remove RPM package
Search:
Name of the yum search RPM package
Show all the files in the repository:
Yum list
The installation package details are displayed:
Name of the yum info RPM package
Update and install:
Name of the yum update RPM package
Clear server repository cache and so on:
Yum clean all
Local installation:
Yum localinstall/path/RPM package name
Local update:
Yum localupdate/path/RPM package name
Displays the list of files installed in the installation package:
Name of the yum provides RPM package
Check the installation package of the file:
Yum whatprovides/path/File
Note:
If you need to install it to the specified folder during installation, you need -- installroot
Example:
Yum install -- installroot =/mnt vim