Yum 常用命令及错误解决方案

来源:互联网 发布:百度网盘mac版是什么 编辑:程序博客网 时间:2024/04/28 07:45

2011-7-8

安装了某EDA软件,启动总是报缺库:libXm.so.3: cannot open shared object file

 

解决yum错误:Cannot retrieve repository metadata (repomd.xml) for repository

问题出在我的centos的安装源无效了。我把 /etc/yum.repos.d/rhel-debuginfo.repo里的
baserul 路径全部注释掉了,换成了另外一个centos源:http://centos.ustc.edu.cn/centos/5/os/i386/。类似问题的朋友们可以试试我的方法。

usage: yum [options] COMMAND

List of Commands:

check-update   Check for available package updates
clean          Remove cached data
deplist        List a package's dependencies
downgrade      downgrade a package
erase          Remove a package or packages from your system
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
help           Display a helpful usage message
info           Display details about a package or group of packages
install        Install a package or packages on your system
list           List a package or groups of packages
localinstall   Install a local 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
search         Search package details for the given string
shell          Run an interactive yum shell
update         Update a package or packages on your system
upgrade        Update packages taking obsoletes into account

 

a)yum provides libXm

b)yum install openMotif