The software package management of RHEL5.0 is automatically read from the disk.

Source: Internet
Author: User
After RHEL (RedHatEnterpriseLinux) is upgraded to 5.0, yum (YellowdogUpdateManager) is used to manage software packages, including software package updates and patch delivery. This is not a small change! So far: 1. If you have not purchased a RedHat subscription, you cannot get the Installation Number (note that it is not the serial number at the time of installation) and thus cannot register the system, red Hat software updates and patches cannot be obtained. 2. "Add/delete software"

After RHEL (Red Hat Enterprise Linux) is upgraded to 5.0, yum (Yellow dog Update Manager) is used to manage software packages, including software package updates and patch delivery. This is not a small change! So far:

1. If you have not purchased a RedHat subscription, you will not be able to get the Installation Number (note that it is not the serial number at the time of installation). Therefore, you will not be able to register the system, and you will not be able to get Red Hat software updates and patch services;

2. In "Add/delete software" (Package Manager, command name is pirut), the software "list" can only see installed software packages; on the "Browse" tab, no manageable Software Package categories will be visible (Some people think this is a Bug, which is actually a "Bug" intentionally created by Redhat "). Open the "Application/system tools/software package update tools" menu, you are required to enter the subscription or register and purchase the subscription. In this way, you cannot get Red Hat updates in time (not paid, you can still understand it), and you cannot use the package management tool on the GUI to add/delete rpm software packages in the system. Although you can manually run the command rpm to install and uninstall the package (such as rpm-Uvh packge. rpm and rpm-e package), and as long as the manual installation is correct, there will be no problems in use, but there is no convenience of the graphic interface. In fact, all rpm packages are stored in the Server directory of the RHEL installation CD (RHEL_5.1 i386 DVD). During manual installation, the installation source is obtained from here. RHEL5.0 actually points the installation source to an http service URL from here, and we can guess that it should be authenticated to directly connect to this URL. But we can imagine that it is also possible to direct the installation source to a local file system? In fact, it does. Practice: 1. Load the DVD installation disk:

Cd/media

Mkdir iso

Mount/dev/hdc iso

In RHEL5.3 installed with Vmware6.0, run the df command to see that my optical drive device is/dev/hdc. I have installed it in/media/iso.

Note that the system is automatically loaded to/media/RHEL_5.1 i386 DVD/, but there are spaces in the middle of the DVD's volume mark, which may cause problems when used. So we need to load it again and change the path. 2. Create the text file RHEL5media. repo in the/etc/yum. repos. d/path and enter the following text content:

[Base]

Name = Base RPM Repository for RHEL5

Baseurl = file: // media/iso/Server/

Enabled = 1

Gpgcheck = 0 3, modify the yumRepo in the/usr/lib/python2.4/site-packages/yum/path. py file (you can see that the system code of RHEL5.0 is developed in Python !), Modify Row 3 from remote = url + '/' + relative to remote = "file: /// mnt/iso/Server/"+ '/' + relative. Click "application/system tool/software package update tool" (the command name is pup). The "Software Package Update" window is displayed, prompting that no updates are available: "There are no software packages available for your system." The syntax is impeccable, but I feel like it's just a foul sentence. Is it a fake foreign devil translation?

Click "application/add or delete software" (the software package update tool cannot run together with the above tool, and an error will be prompted) to open the "Software Package Manager ", on the left side of "browsing" is "desktop environment", "application", "development", "server", "Basic System", and "language support, all software packages, including the packages already installed and not installed, are listed on the right.

Note that I use mo/media/iso/to manage software packages in the future. If you want to "automate", add this command to the Automatic Running file at startup. Add the following content to the end of the rc. local file in/etc:

Mount/dev/hdc/media/iso by the way, if you manually download the update package after Redhat and add it to the Server directory of the disc (the disk cannot be written, change the path). Can I upgrade the system as usual? Theoretically, this is acceptable, but I don't know if I can solve the rpm package dependency problem? I don't know. (This article is written in the gedit editor in RHEL5.03 .)

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.