Red Hat Enterprise Linux as Release 4 (nahant Update 4) Yum and libaio Installation

Source: Internet
Author: User
Tags gpg

Red Hat Enterprise Linux as Release 4 (nahant Update 4) referred to as as4.

 

Common installation and upgrade tools on Linux mainly include Yum and apt. Among them, yum can better solve the dependency problem of rpm, and yum is recommended.
 
In the standard Redhat Enterprise Linux, yum is not installed by default and needs to be downloaded and installed separately.
 
To install yum, follow these steps:
 
1. First install Yum and related RPM packages.
 
Note: This installation package is only available to the as4 system.
 
[Url] http://www.swsoft.com.cn/downloads/prima/tools/yum_foras4.tar.gz#/url#or
[Url] URLs.
 
2. decompress and install the tool.

[Root @ DEV-191 AIO] # tar zxvf yum_foras4.tar.gz
Yum_foras4/
Yum_foras4/CentOS-Base.repo
Yum_foras4/python-elementtree-1.2.6-7.el4.rf.i386.rpm
Yum_foras4/python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm
Yum_foras4/yum-2.4.2-0.4.el4.rf.noarch.rpm
Yum_foras4/sqlite-2.8.16-1.2.el4.rf.i386.rpm
Yum_foras4/python-sqlite-1.0.1-1.2.el4.rf.i386.rpm

 

[Root @ DEV-191 AIO] # cd yum_foras4

 

[Root @ DEV-191 yum_foras4] # rpm-IVH *. rpm
Warning: python-elementtree-1.2.6-7.el4.rf.i386.rpm: V3 DSA? Chapter: nokey, key ID 6b8d79e6
?? ... ######################################## ### [100%]
1: SQLite ####################################### #### [20%]
2: python-SQLite ##################################### ###### [40%]
3: python-urlgrabber ##################################### ###### [60%]
4: python-elementtree ##################################### ###### [80%]
5: yum ####################################### #### [100%]

 

3. Copy the extracted CentOS-Base.repo to the directory/etc/yum. Repos. d.

 

Note: This CentOS-Base.repo file is only available to as4 Systems

 

[Root @ DEV-191 yum_foras4] # cp CentOS-Base.repo/etc/yum. Repos. d/

4. Run the following command to import the GPG key.

[Root @ DEV-191 yum_foras4] # rpm -- import http://developer.centos.org/centos/rpm-gpg-key-centos-4or

[Root @ DEV-191 yum_foras4] # rpm -- import http://www.haoxm.net/tools/RPM-GPG-KEY-CentOS-4

Yum installation is complete and can be used. The main parameters of Yum include search/install/upgrade/remove.

 

[Root @ DEV-191 yum_foras4] # Yum
You need to give some command
Usage: Yum [Options] <update | install | info | remove | list |
Clean | provides | search | check-update | groupinstall |
Groupupdate | grouplist | groupinfo | groupremove |
Makecache | localinstall | erase | upgrade | whatprovides |
Localupdate | resolvedep | shell | deplist>
Options:
-H, -- help show this help message and exit
-T, -- tolerant be tolerant of errors
-C run entirely from cache, don't update Cache
-C [config file] Config File Location
-R [minutes] maximum command wait time
-D [debug level] debugging output level
-E [error level] Error output level
-Y answer yes for all questions
-- Version show Yum version and exit
-- Installroot = [path] Set install Root
-- Enablerepo = [repo] enable one or more repositories (wildcards allowed)
-- Disablerepo = [repo] disable one or more repositories (wildcards allowed)
-- Exclude = [Package] exclude package (s) by name or glob
-- Obsoletes enable obsoletes processing during updates
-- Noplugins disable Yum plugins

 

*****

The following error occurs when running yum in 64-bit Linux:

There was a problem importing one of the python modules
Required to run yum. The error leading to this problem was:

/Usr/lib/python2.3/Site-packages/celementtree. So: cannot open shared object file: no such file or directory

Please install a package which provides this module, or
Verify that the module is installed correctly.

It's possible that the above module doesn't match
Current version of Python, which is:
2.3.4 (#1, Feb 18 2008, 17:16:53)
[GCC 20060404 (Red Hat 3.4.6-9)]

If you cannot solve this problem yourself, please go
The yum FAQ:
Http://wiki.linux.duke.edu/YumFaq

The reason is that the python-elementtree-1.2.6-7.el4.rf.i386.rpm is for 32-bit systems.

 

Solution: Download the 64-bit python-elementtree-1.2.6-7.el4.rf.x86_64.rpm and reinstall it.

*****

 

==============================================
Install libaio
==========================================

[Root @ DEV-191 yum_foras4] # Yum install libaio
Setting up install process
Setting up Repositories
Update 100% | =======================| 1.9 kb
Base 100% | =================================| 1.1 kb
Addons 100% | =============================| 951 B
Extras 100% | =============================| 1.1 kb
Reading repository metadata in from local files
Primary.xml.gz 100% | =======================| 381 KB
Update: ######################################## ######## 908/908
Added 908 new packages, deleted 0 old in 11.02 seconds
Primary.xml.gz 100% | =======================| 611 KB
Base: ######################################## ######## 1599/1599
Added 1599 new packages, deleted 0 old in 13.81 seconds
Primary.xml.gz 100% | =======================| 190 B
Added 0 new packages, deleted 0 old in 0.02 seconds
Primary.xml.gz 100% | =======================| 40 KB
Extras: ######################################## ######## 146/146
Added 146 new packages, deleted 0 old in 0.99 seconds
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for libaio to pack into transaction set.
Libaio-0.3.105-2.i386.rpm 100% | =================================| 6.8 KB
---> Package libaio. i386. 3.105-2 set to be updated
--> Running transaction check
Dependencies resolved
========================================================== ============================================
Package arch version repository size
========================================================== ============================================
Installing:
Libaio i386 0.3.105-2 base 18 K
Transaction Summary
========================================================== ============================================
Install 1 package (s)
Update 0 package (s)
Remove 0 package (s)
Total download size: 18 K
Is this OK [Y/n]: Y
Downloading packages:
(1/1): libaio-0.3.105-2. I 100% |=================================| 18 KB
Running transaction Test
Finished transaction Test
Transaction test succeeded
Running transaction
Installing: libaio ######################### [1/1]
Installed: libaio. i386. 3.105-2
Complete!

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.