Solved the dependency problem of the RedHat AS5 RPM installation package.

Source: Internet
Author: User

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.