Linux下安装yum工具
来源:互联网 发布:linux网关配置 编辑:程序博客网 时间:2024/06/02 12:01
[root@localhost ~]# yum -y install fonts-chineseLoading "rhnplugin" pluginLoading "security" pluginThis system is not registered with RHN.RHN support will be disabled.Setting up Install ProcessParsing package install argumentsNo package fonts-chinese available.Nothing to do[root@localhost ~]# yum updateLoading "rhnplugin" pluginLoading "security" pluginThis system is not registered with RHN.RHN support will be disabled.Skipping security plugin, no dataSetting up Update ProcessSkipping security plugin, no dataSkipping security plugin, no dataNo Packages marked for Update[root@localhost ~]# yum install Loading "rhnplugin" pluginLoading "security" pluginThis system is not registered with RHN.RHN support will be disabled.Error: Need to pass a list of pkgs to installusage: yum [options] < grouplist, localinstall, groupinfo, localupdate, resolvedep, erase, deplist, groupremove, makecache, upgrade, list-security, provides, shell, install, whatprovides, groupinstall, update, repolist, groupupdate, info, search, 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[root@localhost ~]# yum -versioinLoading "rhnplugin" pluginLoading "security" pluginusage: yum [options] < grouplist, localinstall, groupinfo, localupdate, resolvedep, erase, deplist, groupremove, makecache, upgrade, provides, shell, install, whatprovides, groupinstall, update, repolist, groupupdate, info, search, check-update, list, remove, clean, grouperase >Command line error: option -e: invalid integer value: 'rsioin'[root@localhost ~]# yum -versionLoading "rhnplugin" pluginLoading "security" pluginusage: yum [options] < grouplist, localinstall, groupinfo, localupdate, resolvedep, erase, deplist, groupremove, makecache, upgrade, provides, shell, install, whatprovides, groupinstall, update, repolist, groupupdate, info, search, check-update, list, remove, clean, grouperase >Command line error: option -e: invalid integer value: 'rsion'[root@localhost ~]# yum install yum-fastestmirrorLoading "rhnplugin" pluginLoading "security" pluginThis system is not registered with RHN.RHN support will be disabled.Setting up Install ProcessParsing package install argumentsNo package yum-fastestmirror available.Nothing to do[root@localhost ~]# yum install httpdLoading "rhnplugin" pluginLoading "security" pluginThis system is not registered with RHN.RHN support will be disabled.Setting up Install ProcessParsing package install argumentsNo package httpd available.Nothing to do[root@localhost ~]# rpm -qa|grep yum|xargs rpm -e --nodeps[root@localhost ~]# rpm -qa |grep yum[root@localhost ~]# 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.rpmResolving centos.ustc.edu.cn... 202.141.160.110, 2001:da8:d800:95::110Connecting to centos.ustc.edu.cn|202.141.160.110|:80... connected.HTTP request sent, awaiting response... 404 Not Found02:30:56 ERROR 404: Not Found.[root@localhost ~]# 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.rpmResolving centos.ustc.edu.cn... 202.141.160.110, 2001:da8:d800:95::110Connecting to centos.ustc.edu.cn|202.141.160.110|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 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][root@localhost ~]# 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.rpmResolving centos.ustc.edu.cn... 202.141.160.110, 2001:da8:d800:95::110Connecting to centos.ustc.edu.cn|202.141.160.110|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 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][root@localhost ~]# 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.rpmResolving centos.ustc.edu.cn... 202.141.160.110, 2001:da8:d800:95::110Connecting to centos.ustc.edu.cn|202.141.160.110|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 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][root@localhost ~]# rpm -ivh yum-*warning: yum-3.2.22-40.el5.centos.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e8562897error: 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[root@localhost ~]# 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 libs), for GNU/Linux 2.6.9, stripped[root@localhost ~]# rpm -qa|grep yum[root@localhost ~]# lsanaconda-ks.cfg yum-3.2.22-40.el5.centos.noarch.rpmDesktop yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpminstall.log yum-metadata-parser-1.1.2-4.el5.x86_64.rpminstall.log.syslog[root@localhost ~]# rim yum-*.rpmbash: rim: command not found[root@localhost ~]# rm yum-*.rpmrm: remove regular file `yum-3.2.22-40.el5.centos.noarch.rpm'? yrm: remove regular file `yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm'? yrm: remove regular file `yum-metadata-parser-1.1.2-4.el5.x86_64.rpm'? y[root@localhost ~]# lsanaconda-ks.cfg Desktop install.log install.log.syslog[root@localhost ~]# wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm--02:38:42-- http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-3.2.22-40.el5.centos.noarch.rpmResolving centos.ustc.edu.cn... 202.141.160.110, 2001:da8:d800:95::110Connecting to centos.ustc.edu.cn|202.141.160.110|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 1034960 (1011K) [application/x-redhat-package-manager]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][root@localhost ~]# 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.rpmResolving centos.ustc.edu.cn... 202.141.160.110, 2001:da8:d800:95::110Connecting to centos.ustc.edu.cn|202.141.160.110|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 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][root@localhost ~]# 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.rpmResolving centos.ustc.edu.cn... 202.141.160.110, 2001:da8:d800:95::110Connecting to centos.ustc.edu.cn|202.141.160.110|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 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][root@localhost ~]# pm -ivh yum-*bash: pm: command not found[root@localhost ~]# rpm -ivh yum-*warning: yum-3.2.22-40.el5.centos.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e8562897Preparing... ########################################### [100%] 1:yum-metadata-parser ########################################### [ 33%] 2:yum-fastestmirror ########################################### [ 67%] 3:yum ########################################### [100%][root@localhost ~]# wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo--02:40:08-- http://docs.linuxtone.org/soft/lemp/CentOS-Base.repoResolving docs.linuxtone.org... 117.79.157.57Connecting to docs.linuxtone.org|117.79.157.57|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 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][root@localhost ~]# yum makecacheLoaded plugins: fastestmirrorDetermining fastest mirrorsMetadata Cache Created
- Linux下安装yum工具
- linux中安装yum工具
- Linux中安装yum工具
- linux中安装yum工具
- linux中安装yum工具
- Linux:yum安装软件工具
- linux下yum安装LAMP
- linux 下yum安装mysql
- linux下的yum安装
- linux下 yum安装svn
- linux下yum安装LAMP
- linux下yum安装mysql
- Linux下yum安装mysql
- linux下yum安装LAMP
- Linux 下yum安装php
- Linux下yum安装mysql
- Linux 下 YUM 安装 NGiNX
- Linux下yum安装软件
- sicily 1052.Candy Sharing Game
- VMware HA实战攻略之三添加主机及存储
- VMware HA实战攻略之四VMware HA安装及配置
- 设计模式(总)
- VMware HA实战攻略之五VMwareHA测试验收
- Linux下安装yum工具
- 改变UITextField placeHolder颜色、字体
- WIN下的普通备份脚本示例
- c#路径、文件和流
- CMD 命令语言 大全1
- Python re(regular expression operation) Module
- 数学题-hdu-4588-Count The Carries
- 浅谈JAVA中的四个核心概念
- wabacus弹出式编辑做法