Wednesday, December 19, 2012
12:49 PM

Uninstall or Remove Any Application or Package in Fedora


Hi I already installed yum-3.2.28-5.fc12.noarch package now i want to remove that package and
Install lower version yum-3.2.25-2chroot.noarch


[root@server1]#rpm -Uvh yum-3.2.25-2chroot.noarch.rpm 
Preparing...                ########################################### [100%]
package yum-3.2.28-5.fc12.noarch (which is newer than yum-3.2.25-2chroot.noarch) is already installed


1 st time Fail
[root@server1]#yum remove yum

Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package yum.noarch 0:3.2.28-5.fc12 set to be erased
--> Processing Dependency: yum >= 3.2.24 for package: yum-utils-1.1.26-1.fc12.noarch
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.26-1.fc12 set to be erased
--> Finished Dependency Resolution
Error: Trying to remove "yum", which is protected
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

2 nd time Success
[root@server1]#rpm -qa | grep yum

yum-utils-1.1.26-1.fc12.noarch
yum-3.2.28-5.fc12.noarch
yum-metadata-parser-1.1.2-14.fc12.i686
Note the package need to remove

[root@server1]#rpm -e yum-3.2.28-5.fc12.noarch
error: Failed dependencies:
yum >= 3.2.24 is needed by (installed) yum-utils-1.1.26-1.fc12.noarch

For me no need to remove dependence packages So

[root@server1]#rpm -e --nodeps yum-3.2.28-5.fc12.noarch
Success, Now
[root@server1]#rpm -ivh yum-3.2.25-2chroot.noarch.rpm Preparing...                ########################################### [100%]
   1:yum                    ########################################### [100%]



0 comments:

Post a Comment