Use system-config-packages on RHEL5server

Source: Internet
Author: User
On RHEL5server, use system-config-packages -- Linux Enterprise Application-Linux server application information. The following is a detailed description. Some time ago, when I installed the rhel5 server, I found that the browse and search functions of the system-config-packages tool were not available, after reading "completely solving the problem of adding, deleting, and upgrading Fedora 6" written by syd168, refer to setting up in rhel5 server and share the setting process with you.

1. place the rhel5 server dvd iso file on the web server, mount it to the/srv/www/htdocs/RHEL5/server/directory, and share it with apache. The url is http: // 192.168.64.222/RHEL5/server /.

2. Create a file in the/etc/yum. repos. d directory on the server. The file name is arbitrary and the extension must be repo. The file content is as follows:

[Base]
Name = base RPM Repository for RHEL5
Baseurl = http: // 192.168.64.222/RHEL5/server/Server/
Enabled = 1
Gpgcheck = 0

NOTE: If http: // 192.168.64.222/RHEL5/server/is written in baseurl, after research, we found that the system will go to the directory specified by baseurl to find the rpm package. All RPMs on the dvd disk are placed under the "Server" directory, therefore, the baseurl must be appended with the Server directory name after the url of the dvd iso.

3. Modify the/usr/lib/python2.4/site-packages/yum/yumRepo. py file on the server. The first line of the file is as follows:

Remote = url + '/' + relative

Change it:

Remote = "http: // 192.168.64.222/RHEL5/server/" + '/' + relative

Save and exit.

If the iso file is mounted locally, the installation source is set to local,/etc/yum. repos. change the baseurl In the repo file under d to the local directory,/usr/lib/python2.4/site-packages/yum/yumRepo. the remote file in the py file is also modified.

4. Clear the cache: yum clean all.

5. Run system-config-packages. Both the browse and search functions can be used to conveniently add programs.
Related Article

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.