Yum常用命令及Yum中文手册
转自:http://blog.csdn.net/huangbiao86/article/details/6646471
Yum配置文件位于/etc/yum.conf和/etc/yum.repos.d/CentOS-Base.repo目录下
使用yum时注意:必须使用root身份来执行yum;yum配置文件内的镜像站点必须能与自己进行网络连接;镜像站点越近,带宽越大越好,方便下载。
[root@localhost ~]# yum [options] COMMAND 软件
List of Commands:
install:Install a package or packages on your system
update:Update a package or packages on your system
remove:移出某个软件,后跟软件名称
search:Search package details for the given string 搜索某个软件或重要关键字
list:List a package or groups of packages列出yum所管理的软件名称与版本,类似于rpm –qa
info:Display details about a package or group of packages,类似于rpm –qai
clean:Remove cached data 下载文件被放置在/var/cache/yum中,可以使用clean清除。
check-update:Check for available package updates
Groupinfo:Display details about a package group
groupinstall Install the packages in a group on your system
grouplist:List available package groups
groupremove:Remove the packages in a group from your system
groupupdate:升级整个软件群组
help:Display a helpful usage message
Deplist:List a package's dependencies 列出软件包的依赖关系,在使用本地源软件包进行安装时,可以查看依赖关系
Downgrade:downgrade a package
Erase:Remove a package or packages from your system
localinstall:Install a local RPM安装本地的rpm软件包
makecache:Generate the metadata cache 生成数据缓存
provides:Find what package provides the given value 找到包提供的给定值
reinstall:reinstall a package 重装软件包
repolist:Display the configured software repositories
resolvedep:Determine which package provides the given dependency
shell:Run an interactive yum shell
upgrade:Update packages taking obsoletes into account
-y:answer yes for all questions当yum询问用户意见时,主动回答yes不需由键盘输入
-installroot=[path]:set install root安装在其他的路径,而不再当前目录树的架构中
-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
-showduplicates show duplicates, in repos, in list/search commands
-e [error level] error output level
-q, --quiet quiet operation
-v, --verbose verbose operation
-version show Yum version and exit
-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
-enableplugin=[plugin] enable plugins by name
-skip-broken:skip packages with depsolving problems
-color=COLOR: control whether color is used
[root@localhost ~]# yum search gcc 查找主机上是否有gcc的相关软件,如果有,就会陈列出来。
[root@localhost ~]# yum info gcc 列出已安装的yum所管理的软件名称与版本
……………………………………………………………………
Name:gcc
Arch:i386
Version: 4.1.2
Release: 48.el5
Size:9.6 M
Repo:installed
Summary:各类编译器(C、C++、Objective-C、Java, ...)
URL:http://gcc.gnu.org
License:GPL
Description:The gcc package contains the GNU Compiler Collection version 4.1.You'll need this package in order to compile c code
……………………………………………………………………
显示该软件版本名称,数据大小,软件出处等信息。需要注意summary和description的信息
可以依据yum search 软件名查找此软件的信息,yum list软件名 列出此软件的版本和名称,决定是否安装此软件。
安装之前使用rpm –q 软件名,查看此软件是否安装,如没有安装,使用yum install 软件名 进行安装
使用yum可以主动处理好依赖关系,下载好的软件一般都放置在/var/cache/yum中,可以清除以节省磁盘空间。
[root@localhost ~]# yum clean packages #清除下载的软件包
[root@localhost ~]# yum -y update #手动系统更新
Yum常用命令及Yum中文手册的更多相关文章
- CentOS下yum常用命令
1.自动搜索最快镜像插件:yum install yum-fastestmirror 2.更换163的源. 首先:备份/etc/yum.repos.d/CentOS-Base.repomv /etc/ ...
- yum常用命令大全
yum命令是在Fedora和RedHat以及SUSE中基于rpm的软件包管理器,它可以使系统管理人员交互和自动化地更细与管理RPM软件包,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性 ...
- linux YUM常用 命令
语法 yum(选项)(参数) 选项 -h:显示帮助信息: -y:对所有的提问都回答“yes”: -c:指定配置文件: -q:安静模式: -v:详细模式: -d:设置调试等级(0-10): -e:设置错 ...
- sudo apt-get 与 yum 常用命令
yum -RedHat:CentOS... -xxx.rpmsudo apt-get -Debian:Ubuntu... -xxx.deb 安装工具rpm -ivh yum-2.0.4-1.rh ...
- yum常用命令
Yum list kmod-coretemp[查找kmod-coretemp模块状态] Yum clean all[清空yum缓存] Yum remove kmod-coretemp [卸载kmod- ...
- YUM常用命令介绍
http://www.cnblogs.com/lostyue/archive/2012/05/06/2485653.html 1.列出所有可更新的软件清单 命令:yum check-update 2. ...
- Linux常用命令之Yum
Linux Yum命令详解Yum全称Yellow dog Updater,Modified,是一个在Fedora和RedHat以及SUSE中提供的基于RPM包的软件包管理工具,能够从指定的服务器自动下 ...
- linux常用命令:yum 命令
用于添加/删除/更新RPM包,自动解决包的依赖问题以及系统更新升级. 1.命令格式: yum [参数] [软件名]2.命令功能: 功能: yum提供了查找.安装.删除某一个.一组甚至全 ...
- yum 常用命令
yum是一个用于管理rpm包的后台程序,用python写成,可以非常方便的解决rpm的依赖关系.在建立好yum服务器后,yum客户端可以通过 http.ftp方式获得软件包,并使用方便的命令直接管理. ...
随机推荐
- 实现gabor filter的滤波
实现gabor filter的滤波 图像纹理对于航空遥感图片.织物图案.复杂自然风景和动植物都适合.这里我采用遥感图片.织物图案和钢铁表面来做,并和canny图片进行一定的对比. ...
- #在lua中的运用
在lua中"#"表示返回表长度或字符串长度 例子一: a = "Hello " b = "World" print("Concat ...
- 2016-2017 CT S03E05: Codeforces Trainings Season 3 Episode 5 (2016 Stanford Local Programming Contest, Extended) I
链接:http://codeforces.com/gym/101116 题意:选六个数,必须出现次数最多,且数字最小,如果出现7优先加入7 解法:排序,出现7优先加入7,最后再将6个数排序 #incl ...
- P2312 解方程
题目描述 已知多项式方程: a0+a1x+a2x^2+..+anx^n=0 求这个方程在[1, m ] 内的整数解(n 和m 均为正整数) 输入输出格式 输入格式: 输入文件名为equation .i ...
- android 入门 007(界面跳转)
一.隐式跳转(自定义界面) 界面层: <Button android:id="@+id/sencond_contact" android:layout_width=" ...
- 回车和换行在linux下和windows下
今天,我总算搞清楚"回车"(carriage return)和"换行"(line feed)这两个概念的来历和区别了. 1. 在计算机还没有出现之前,有一种叫 ...
- [C语言](*p)++与 ++(*p)与 *p++ 与 ++*p
首先亮明个人观点,不要认为这样写都算写的不好,还强调大神一般不写这种代码,可读性不高 其实是你的C语言基础太差,读不懂,大神还真的就是这么写的.可以看看C语言库函数中的一些写法 *P++ :*和++都 ...
- C#注册表操作,根据键取值
string into = ""; RegistryKey key = Registry.LocalMachine; RegistryKey myreg = key.OpenSub ...
- 再论EM算法的收敛性和K-Means的收敛性
标签(空格分隔): 机器学习 (最近被一波波的笔试+面试淹没了,但是在有两次面试时被问到了同一个问题:K-Means算法的收敛性.在网上查阅了很多资料,并没有看到很清晰的解释,所以希望可以从K-Mea ...
- Map Columns From Different Tables and Create Insert and Update Statements in Oracle Forms
This is one of my most needed tool to create Insert and Update statements using select or alias from ...