Chinaunix首页 | 论坛 | 博客
  • 博客访问: 297379
  • 博文数量: 87
  • 博客积分: 1206
  • 博客等级: 少尉
  • 技术积分: 725
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-16 00:12
个人简介

do the right things the right ways

文章分类

全部博文(87)

文章存档

2017年(5)

2016年(6)

2015年(1)

2012年(11)

2011年(64)

分类: LINUX

2011-12-12 12:45:24

在更新 PHP 版本的时候,出现了NOKEY的错误提示后,暂时没有解决掉这个问题,于是就手动安装了php-mbstring...rpm  包的高版本,这样在接下来的错作中就出现了错误信息:The program package-cleanup is found in the yum-utils package.

什么是yum-utils:

yum-utils are tools for manipulating repositories and extended package management. It is a collection of tools and programs for managing yum repositories, installing debug packages, source packages, extended information from repositories and administration.

yum-utils package includes:
debuginfo-install - install debuginfo packages and their dependencies
package-cleanup - manage package cleanup, duplicates, orphaned packages and outstanding dependency problems
repo-graph - outputs a full package dependency list in dot format
repo-rss - generates an RSS feed from one or more repositories
repoclosure - reads metadata of repositories, checks dependencies and displays list of unresolved dependencies
repodiff - takes two or more repositories, returns a list of added, removed or changed packages
repomanage - manages a directory of rpm packages, returns a list of newest or oldest packages in a directory
repoquery - query yum repositories and get additional information on the them
reposync - synchronize a remote yum repository to a local directory using yum to retrieve packages
repotrack - track packages and its dependencies and downloads them
yum-builddep - installs missing dependencies to build a specified package
yum-complete-transaction - finds incomplete or aborted yum transactions and attempts to complete them
yum-installed - print a compact package list making use of comps groups
yumdownloader - downloads packages from yum repositories including source RPMs

出现这句话说明清除程序包存在并在yum-utils套件包里找到了,看不出安装存在问题。存在不兼容问题的话一般是用yum安装一些rpm packages时候会出现missing dependency error,会有error提示的。

解决办法:

yum install yum-utils
yum-complete-transaction --cleanup-only
清除可能存在的重复包
package-cleanup --dupes
清除可能存在的损坏包
package-cleanup --problems
清除重复包的老版本:
package-cleanup --
cleandupes

package-cleanup 帮助信息如下:

options:
-h, --help show this help message and exit
--problems List dependency problems in the local RPM database
--leaves List leaf nodes in the local RPM database
--all When listing leaf nodes also list leaf nodes that do
not match leaf-regex
--leaf-regex=LEAF_REGEX
A package name that matches this regular expression
(case insensitively) is a leaf
--exclude-devel When listing leaf nodes do not list development
packages
--exclude-bin When listing leaf nodes do not list packages with
files in bin dirs
--orphans List installed packages which are not available from
currenly configured repositories.
-q, --quiet Print out nothing unecessary
-y Agree to anything asked
-d, --dupes Scan for duplicates in your rpmdb
--cleandupes Scan for duplicates in your rpmdb and cleans out the
older versions
--oldkernels Remove old kernel and kernel-devel packages
--count=KERNELCOUNT Number of kernel packages to keep on the system
(default 2)
--keepdevel Do not remove kernel-devel packages when removing
kernels
-c CONFFILE config file location

阅读(4289) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~