System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

what is the purpose of "package-cleanup" available with "yum-utils package" in linux

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

what is the purpose of "package-cleanup" available with "yum-utils package" in linux

Hi All,

I have tried to install

# yum install php-mysql
Loaded plugins: rhnplugin, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mysql.i386 0:5.1.6-27.el5 set to be updated
--> Processing Dependency: php-common = 5.1.6-27.el5 for package: php-mysql
--> Processing Dependency: php-pdo for package: php-mysql
--> Running transaction check
---> Package php-mysql.i386 0:5.1.6-27.el5 set to be updated
--> Processing Dependency: php-common = 5.1.6-27.el5 for package: php-mysql
---> Package php-pdo.i386 0:5.1.6-27.el5 set to be updated
--> Processing Dependency: php-common = 5.1.6-27.el5 for package: php-pdo
--> Finished Dependency Resolution
php-pdo-5.1.6-27.el5.i386 from rhel-i386-server-5 has depsolving problems
--> Missing Dependency: php-common = 5.1.6-27.el5 is needed by package php-pdo-5.1.6-27.el5.i386 (rhel-i386-server-5)
php-mysql-5.1.6-27.el5.i386 from rhel-i386-server-5 has depsolving problems
--> Missing Dependency: php-common = 5.1.6-27.el5 is needed by package php-mysql-5.1.6-27.el5.i386 (rhel-i386-server-5)
Error: Missing Dependency: php-common = 5.1.6-27.el5 is needed by package php-mysql-5.1.6-27.el5.i386 (rhel-i386-server-5)
Error: Missing Dependency: php-common = 5.1.6-27.el5 is needed by package php-pdo-5.1.6-27.el5.i386 (rhel-i386-server-5)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.



PS: Take a look at last line.


My Questions:

1)what is the purpose of "Package-cleanup"?

2)How to install and use "Package-cleanup"?
1 REPLY
Steven E. Protter
Exalted Contributor
Solution

Re: what is the purpose of "package-cleanup" available with "yum-utils package" in linux

Shalom,

Package cleanup is used to clean up redundant or superseded packages. It can also clean up the wreckage from failed updates/installs.

yum -y install yum-utils

It is in my mind a must have.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com