Installing the Yum tool under Linux

Source: Internet
Author: User
Tags syslog cve

[Email protected] ~]# yum-y install Fonts-chinese
Loading "Rhnplugin" plugin
Loading "Security" plugin
This system isn't registered with the portal.
Portal support would be disabled.
Setting up Install Process
Parsing Package Install arguments
No Package Fonts-chinese available.
Nothing to do
[[email protected] ~]# Yum update
Loading "Rhnplugin" plugin
Loading "Security" plugin
This system isn't registered with the portal.
Portal support would be disabled.
Skipping security plugin, no data
Setting up Update Process
Skipping security plugin, no data
Skipping security plugin, no data
No Packages marked for Update
[email protected] ~]# Yum Install
Loading "Rhnplugin" plugin
Loading "Security" plugin
This system isn't registered with the portal.
Portal support would be disabled.
Error:need to pass a list of pkgs to install
Usage:yum [Options] < Grouplist, Localinstall, GroupInfo, Localupdate, RESOLVEDEP, Erase, Deplist, Groupremove, Makeca Che, upgrade, list-security, provides, shell, install, whatprovides, Groupinstall, Update, repolist, groupupdate, info, se Arch, Check-update, list-sec, List, remove, info-sec, clean, info-security, Grouperase >

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
-Q,--quiet quiet operation
-V,--verbose verbose operation
-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)
-X [Package],--exclude=[package]
Exclude package (s) by name or Glob
--disableexcludes=[repo]
Disable exclude from Main, for a repo or for
Everything
--obsoletes enable obsoletes processing during updates
--noplugins Disable Yum Plugins
--nogpgcheck Disable GPG signature checking
--disableplugin=[plugin]
Disable plugins by name
--security Include Security Relevant packages
--cve=cve Include packages needed to fix the given CVE
--BZ=BZ Include packages needed to fix the given BZ
--advisory=advisory Include packages needed to fix the given advisory
[Email protected] ~]# Yum-versioin
Loading "Rhnplugin" plugin
Loading "Security" plugin
Usage:yum [Options] < Grouplist, Localinstall, GroupInfo, Localupdate, RESOLVEDEP, Erase, Deplist, Groupremove, Makeca Che, upgrade, provides, shell, install, whatprovides, Groupinstall, Update, repolist, groupupdate, info, search, CHECK-UPD Ate, list, remove, clean, grouperase >

Command line error:option-e: Invalid integer value: ' Rsioin '
[Email protected] ~]# yum-version
Loading "Rhnplugin" plugin
Loading "Security" plugin
Usage:yum [Options] < Grouplist, Localinstall, GroupInfo, Localupdate, RESOLVEDEP, Erase, Deplist, Groupremove, Makeca Che, upgrade, provides, shell, install, whatprovides, Groupinstall, Update, repolist, groupupdate, info, search, CHECK-UPD Ate, list, remove, clean, grouperase >

Command line error:option-e: Invalid integer value: ' Rsion '
[email protected] ~]# Yum install Yum-fastestmirror
Loading "Rhnplugin" plugin
Loading "Security" plugin
This system isn't registered with the portal.
Portal support would be disabled.
Setting up Install Process
Parsing Package Install arguments
No Package Yum-fastestmirror available.
Nothing to do
[email protected] ~]# Yum install httpd
Loading "Rhnplugin" plugin
Loading "Security" plugin
This system isn't registered with the portal.
Portal support would be disabled.
Setting up Install Process
Parsing Package Install arguments
No Package httpd available.
Nothing to do
[Email protected] ~]# rpm-qa|grep Yum|xargs rpm-e--nodeps
[Email protected] ~]# Rpm-qa |grep Yum
[Email protected] ~]# wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/ yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
--02:30:56--http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
Resolving centos.ustc.edu.cn ... 202.141.160.110, 2001:da8:d800:95::110
Connecting to centos.ustc.edu.cn|202.141.160.110|:80 ... Connected.
HTTP request sent, awaiting response ... 404 Not Found
02:30:56 ERROR 404:not Found.

[Email protected] ~]# wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-4.el5.x86_64.rpm
--02:33:37--http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-4.el5.x86_64.rpm
Resolving centos.ustc.edu.cn ... 202.141.160.110, 2001:da8:d800:95::110
Connecting to centos.ustc.edu.cn|202.141.160.110|:80 ... Connected.
HTTP request sent, awaiting response ... OK
length:26027 (25K) [Application/x-redhat-package-manager]
Saving to: ' yum-metadata-parser-1.1.2-4.el5.x86_64.rpm '

100%[=======================================>] 26,027--.-k/s in 0.06s

02:33:37 (406 kb/s)-' yum-metadata-parser-1.1.2-4.el5.x86_64.rpm ' saved [26027/26027]

[Email protected] ~]# wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/ yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
--02:34:30--http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
Resolving centos.ustc.edu.cn ... 202.141.160.110, 2001:da8:d800:95::110
Connecting to centos.ustc.edu.cn|202.141.160.110|:80 ... Connected.
HTTP request sent, awaiting response ... OK
length:21033 (21K) [Application/x-redhat-package-manager]
Saving to: ' yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm '

100%[=======================================>] 21,033--.-k/s in 0.06s

02:34:30 (332 kb/s)-' yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm ' saved [21033/21033]

[Email protected] ~]# wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
--02:34:57--http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
Resolving centos.ustc.edu.cn ... 202.141.160.110, 2001:da8:d800:95::110
Connecting to centos.ustc.edu.cn|202.141.160.110|:80 ... Connected.
HTTP request sent, awaiting response ... OK
length:1034960 (1011K) [Application/x-redhat-package-manager]
Saving to: ' yum-3.2.22-40.el5.centos.noarch.rpm '

100%[=======================================>] 1,034,960 848k/s in 1.2s

02:34:58 (848 kb/s)-' yum-3.2.22-40.el5.centos.noarch.rpm ' saved [1034960/1034960]

[Email protected] ~]# RPM-IVH yum-
Warning:yum-3.2.22-40.el5.centos.noarch.rpm:header V3 DSA Signature:nokey, key ID e8562897
error:failed dependencies:
Libc.so.6 () (64bit) is needed by yum-metadata-parser-1.1.2-4.el5.x86_64
Libc.so.6 (glibc_2.2.5) (64bit) is needed by yum-metadata-parser-1.1.2-4.el5.x86_64
libglib-2.0.so.0 () (64bit) is needed by yum-metadata-parser-1.1.2-4.el5.x86_64
Libm.so.6 () (64bit) is needed by yum-metadata-parser-1.1.2-4.el5.x86_64
libpthread.so.0 () (64bit) is needed by yum-metadata-parser-1.1.2-4.el5.x86_64
libsqlite3.so.0 () (64bit) is needed by yum-metadata-parser-1.1.2-4.el5.x86_64
Libxml2.so.2 () (64bit) is needed by yum-metadata-parser-1.1.2-4.el5.x86_64
Libz.so.1 () (64bit) is needed by yum-metadata-parser-1.1.2-4.el5.x86_64
[Email protected] ~]# File/bin/ls
/bin/ls:elf 32-bit LSB executable, Intel 80386, version 1 (SYSV), for Gnu/linux 2.6.9, dynamically linked (uses shared Li BS), for Gnu/linux 2.6.9, stripped
[Email protected] ~]# Rpm-qa|grep Yum
[[email protected] ~]# ls
Anaconda-ks.cfg yum-3.2.22-40.el5.centos.noarch.rpm
Desktop yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
Install.log yum-metadata-parser-1.1.2-4.el5.x86_64.rpm
Install.log.syslog
[Email protected] ~]# rim yum-
. rpm
Bash:rim:command not found
[Email protected] ~]# RM yum-*.rpm
Rm:remove Regular fileyum-3.2.22-40.el5.centos.noarch.rpm‘? y <br/>rm: remove regular fileyum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm '? Y
Rm:remove Regular fileyum-metadata-parser-1.1.2-4.el5.x86_64.rpm‘? y <br/>[[email protected] ~]# ls <br/>anaconda-ks.cfg Desktop install.log install.log.syslog <br/>[[email protected] ~]# wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm <br/>--02:38:42-- http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm <br/>Resolving centos.ustc.edu.cn... 202.141.160.110, 2001:da8:d800:95::110 <br/>Connecting to centos.ustc.edu.cn|202.141.160.110|:80... connected. <br/>HTTP request sent, awaiting response... 200 OK <br/>Length: 1034960 (1011K) [application/x-redhat-package-manager] <br/>Saving to:yum-3.2.22-40.el5.centos.noarch.rpm '

100%[=======================================>] 1,034,960 1.07m/s in 0.9s

02:38:43 (1.07 MB/s)-' yum-3.2.22-40.el5.centos.noarch.rpm ' saved [1034960/1034960]

[Email protected] ~]# wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-4.el5.i386.rpm
--02:38:59--http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-4.el5.i386.rpm
Resolving centos.ustc.edu.cn ... 202.141.160.110, 2001:da8:d800:95::110
Connecting to centos.ustc.edu.cn|202.141.160.110|:80 ... Connected.
HTTP request sent, awaiting response ... OK
length:26164 (26K) [Application/x-redhat-package-manager]
Saving to: ' yum-metadata-parser-1.1.2-4.el5.i386.rpm '

100%[=======================================>] 26,164--.-k/s in 0.06s

02:38:59 (453 kb/s)-' yum-metadata-parser-1.1.2-4.el5.i386.rpm ' saved [26164/26164]

[Email protected] ~]# wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/ yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
--02:39:18--http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
Resolving centos.ustc.edu.cn ... 202.141.160.110, 2001:da8:d800:95::110
Connecting to centos.ustc.edu.cn|202.141.160.110|:80 ... Connected.
HTTP request sent, awaiting response ... OK
length:21033 (21K) [Application/x-redhat-package-manager]
Saving to: ' yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm '

100%[=======================================>] 21,033--.-k/s in 0.06s

02:39:19 (331 kb/s)-' yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm ' saved [21033/21033]

[[email protected] ~]# pm-ivh yum-
Bash:pm:command not found
[[email protected] ~]# Rpm-ivh y um-

Warning:yum-3.2.22-40.el5.centos.noarch.rpm:header V3 DSA signature:nokey, key ID e8562897
Preparing. .. ########################################### [100%]
1:yum-metadata-parser #################################### ####### [33%]
2:yum-fastestmirror ########################################### [67%]
3:yum ################## ######################### [100%]
[[email protected] ~]# wget http://docs.linuxtone.org/soft/lemp/ Centos-base.repo
--02:40:08--Http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
Resolving Docs.linuxtone.org ... 117.79.157.57
Connecting to docs.linuxtone.org|117.79.157.57|:80 ... connected.
HTTP request sent, awaiting response ... $ OK
length:1426 (1.4K) [Application/octet-stream]
Saving to: ' Centos-base.repo '

100%[=======================================>] 1,426--.-k/s in 0s

02:40:09 (192 MB/s)-' Centos-base.repo ' saved [1426/1426]

[email protected] ~]# Yum Makecache
Loaded Plugins:fastestmirror
Determining fastest Mirrors
Metadata Cache Created

Note: If you encounter a program that is not signed, but you are sure it is safe, you can add the--nogpgcheck parameter at this time.

Installing the Yum tool under Linux

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.