Linux下安装yum工具

[[email protected] ~]# yum -y install fonts-chinese
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will 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 is not registered with RHN.
RHN support will 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 is not registered with RHN.
RHN support will be disabled.
Error: Need to pass a list of pkgs to install
usage: 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
[[email protected] ~]# yum -versioin
Loading "rhnplugin" plugin
Loading "security" plugin
usage: 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‘
[[email protected] ~]# yum -version
Loading "rhnplugin" plugin
Loading "security" plugin
usage: 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‘
[[email protected] ~]# yum install yum-fastestmirror
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will 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 is not registered with RHN.
RHN support will 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... 200 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... 200 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... 200 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 libs), 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 file yum-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 file yum-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... 200 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... 200 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 yum-

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... 200 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

注意:如果遇到没签名的程序,但你确定它是安全的,此时可以添加--nogpgcheck参数。

原文地址:http://blog.51cto.com/jack88/2095607

时间: 2024-10-06 01:19:38

Linux下安装yum工具的相关文章

Linux下安装项目管理工具Redmine

http://www.redmine.org.cn/download Linux下安装项目管理工具Redmine1.Ruby安装Ruby on Rails网站推荐使用1.8.7版. 点击(此处)折叠或打开 # wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz # tar zxvf ruby-1.8.7-p174.tar.gz # cd ruby-1.8.7-p174 # ./configure –prefix=/us

日积月累Learning Linux(一):在Linux下安装Git工具

背景: 由于项目需要,经常在github上下载开源库项目源代码.因此最近决定花时间系统学习一下Linux下的相关软件的安装方法,这里就以Git工具的安装为例进行讲解. Linux(fedora18)安装Git工具: 1)Git与Github的区别: Github是一个网站,给用户提供git服务.相当于web版的Git工具,在Github上注册个账号,就可以享受网站提供的Git服务.而Git是一个版本控制系统,与SVN.CVS是类似的概念,简单点说就是对你的文件的一种版本管理(此处所谓的版本其实就

Linux下安装yum源相关命令

install:安装rpm软件包:update:更新rpm软件包:check-update:检查是否有可用的更新rpm软件包:remove:删除指定的rpm软件包:list:显示软件包的信息:search:检查软件包的信息:info:显示指定的rpm软件包的描述信息和概要信息:clean:清理yum过期的缓存:shell:进入yum的shell提示符:resolvedep:显示rpm软件包的依赖关系:localinstall:安装本地的rpm软件包:localupdate:显示本地rpm软件包进

Linux下安装rlwrap工具

rlwrap 可以用来支持Oracle下sqlplus历史命令的回调功能,提高工作效率. 下载rlwrap程序包 上传服务器中 在安装rlwrap程序包之前要先安装readline包,建议使用Yum安装,这样有相关关联程序包就可以直接安装了 先查询是否readline包 [[email protected] ~]# rpm -ivh /mnt/cdrom/Packages/read readahead-1.5.6-2.el6.x86_64.rpm     readline-6.0-4.el6.x

linux下安装swftools工具

swfTools是一种实用工具与Adobe Flash文件(swf文件)工作的集合.可以把(pdf/gif/png/jpeg/jpg/font/wav) 7种格式转换为swf文件.一般常用于文件在线浏览等. swftools官网及下载地址:http://www.swftools.org/download.html (1)tar -zxvf [swftools-0.9.2.tar.gz所在的实际全路径] (2)cd swftools-0.9.2 (3) ./configure  或./config

linux下安装数据库管理工具dbeaver

1  解压dbeaver: unzip dbeaver-3.4.1-ee-linux.gtk.x86_64.zip 2  拷贝解压出来的dbeaver到/usr/local/tools: cp -r dbeaver /usr/local/tools 3  在/usr/share/applications下创建快捷方式: gedit /usr/share/applications/dbeaver.desktop 内容为: [Desktop Entry] Comment=Java IDE Name=

linux下多线程下载工具axel的编译安装

axel 是Linux 命令行下多线程的下载工具,支持断点续传,速度通常情况下是Wget的几倍 官方主页:http://axel.alioth.debian.org/ 源码下载: #curl -O http://pkgs.fedoraproject.org/repo/pkgs/axel/axel2.4.tar.gz/a2a762fce0c96781965c8f9786a3d09d/axel-2.4.tar.gz 编译安装: # tar -xvf axel-2.4.tar.gz  && cd

linux下gitflow辅助工具安装和使用

gitflow是一个确保nvie推荐的git branch分支策略最佳模型得到有效实施的辅助工具.它作为git的一个子命令而存在. http://nvie.com/posts/a-successful-git-branching-model/ linux下安装非常简单 https://github.com/nvie/gitflow/wiki/Linux $ yum install gitflow 安装完成以后git flow xxx就可以使用了. git flow init [-d] list,

MySQL Study之--Linux下安装MySQL workbench工具

MySQL Study之--Linux下安装MySQL workbench工具 系统环境:      操作系统: RedHat EL6.4(64)      WorkBench: mysql-workbench-community-6.0.9 MySQL Workbench是一款专为MySQL设计的ER/数据库建模工具.它是著名的数据库设计工具DBDesigner4的继任者.你可以用MySQL Workbench设计和创建新的数据库图示,建立数据库文档,以及进行复杂的MySQL 迁移. MySQ