Okay, I tried installing OpenOffice beta, and I think I messed it up, so I wanted to uninstall it. I thought wilcards worked, so I tried: [root at localhost program]# rpm -e openoffice* error: package openoffice* is not installed Okay, so I couldn't figure out how to remove a bunch of RPM packages at once, so I did this: [root at localhost program]# rpm -qa | grep openoffice And proceeded the labourous task of removing all of the RPMs listed one by one. But then I got down to some files that would say: rpm -e openofficeorg-core01-1.9.122-1.i586 error: Failed dependencies: openofficeorg-core01 is needed by (installed) openofficeorg-core08-1.9.122-1.i586 So then I'd remove the dependancy, and guess what?: rpm -e openofficeorg-core08-1.9.122-1.i586 error: Failed dependencies: openofficeorg-core01 is needed by (installed) openofficeorg-core01-1.9.122-1.i586 The two packages are dependant on each other so I can't remove either. *sigh* So, how do I remove them? Dave
On Fri, Aug 05, 2005 at 02:28:08AM +0900, Dave Gutteridge enlightened us:> Okay, I tried installing OpenOffice beta, and I think I messed it up, so > I wanted to uninstall it. > > I thought wilcards worked, so I tried: > [root at localhost program]# rpm -e openoffice* > error: package openoffice* is not installed > > Okay, so I couldn't figure out how to remove a bunch of RPM packages at > once, so I did this: > [root at localhost program]# rpm -qa | grep openoffice > > And proceeded the labourous task of removing all of the RPMs listed one > by one. > > But then I got down to some files that would say: > rpm -e openofficeorg-core01-1.9.122-1.i586 > error: Failed dependencies: > openofficeorg-core01 is needed by (installed) > openofficeorg-core08-1.9.122-1.i586 > > So then I'd remove the dependancy, and guess what?: > rpm -e openofficeorg-core08-1.9.122-1.i586 > error: Failed dependencies: > openofficeorg-core01 is needed by (installed) > openofficeorg-core01-1.9.122-1.i586 > > The two packages are dependant on each other so I can't remove either. > *sigh* > So, how do I remove them? ># rpm -e openofficeorg-core01 openofficeorg-core08 :-) -- Matt Hyclak Department of Mathematics Department of Social Work Ohio University (740) 593-1263 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20050804/3809f2bd/attachment-0002.sig>
On Thursday 04 August 2005 13:28, Dave Gutteridge wrote:> The two packages are dependant on each other so I can't remove either. > So, how do I remove them?rpm -e pkg1 pkg2
This is a really dumb idea but I would try rpm -e openofficeorg-core01-1.9.122-1.i586 openofficeorg-core01 Thanks, Bill On Fri, 2005-08-05 at 02:28 +0900, Dave Gutteridge wrote:> Okay, I tried installing OpenOffice beta, and I think I messed it up, so > I wanted to uninstall it. > > I thought wilcards worked, so I tried: > [root at localhost program]# rpm -e openoffice* > error: package openoffice* is not installed > > Okay, so I couldn't figure out how to remove a bunch of RPM packages at > once, so I did this: > [root at localhost program]# rpm -qa | grep openoffice > > And proceeded the labourous task of removing all of the RPMs listed one > by one. > > But then I got down to some files that would say: > rpm -e openofficeorg-core01-1.9.122-1.i586 > error: Failed dependencies: > openofficeorg-core01 is needed by (installed) > openofficeorg-core08-1.9.122-1.i586 > > So then I'd remove the dependancy, and guess what?: > rpm -e openofficeorg-core08-1.9.122-1.i586 > error: Failed dependencies: > openofficeorg-core01 is needed by (installed) > openofficeorg-core01-1.9.122-1.i586 > > The two packages are dependant on each other so I can't remove either. > *sigh* > So, how do I remove them? > > Dave > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos
On Thu, 4 Aug 2005, Matt Hyclak wrote:> On Fri, Aug 05, 2005 at 02:28:08AM +0900, Dave Gutteridge enlightened us: > > Okay, I tried installing OpenOffice beta, and I think I messed it up, so > > I wanted to uninstall it. > > > > I thought wilcards worked, so I tried: > > [root at localhost program]# rpm -e openoffice* > > error: package openoffice* is not installed > >They do with yum, which cleans up the dependencies as well. yum erase openoffice* ------------------------------------------------------------------------ Jim Wildman, CISSP, RHCE jim at rossberry.com http://www.rossberry.com "Society in every state is a blessing, but Government, even in its best state, is a necessary evil; in its worst state, an intolerable one." Thomas Paine
What has yet to be said clearly enough is that yum is far better att working with deps both when install and uninstall. The following will remove a package and all other packages that depend on the first (and so on): yum remove PACKAGE it will even ask you for yes/no when it has figured out what needs to be removed and displayed it in a nice list. /Peter On Thursday 04 August 2005 19.28, Dave Gutteridge wrote:> Okay, I tried installing OpenOffice beta, and I think I messed it up, so > I wanted to uninstall it. > > I thought wilcards worked, so I tried: > [root at localhost program]# rpm -e openoffice* > error: package openoffice* is not installed > > Okay, so I couldn't figure out how to remove a bunch of RPM packages at > once, so I did this: > [root at localhost program]# rpm -qa | grep openoffice > > And proceeded the labourous task of removing all of the RPMs listed one > by one. > > But then I got down to some files that would say: > rpm -e openofficeorg-core01-1.9.122-1.i586 > error: Failed dependencies: > openofficeorg-core01 is needed by (installed) > openofficeorg-core08-1.9.122-1.i586 > > So then I'd remove the dependancy, and guess what?: > rpm -e openofficeorg-core08-1.9.122-1.i586 > error: Failed dependencies: > openofficeorg-core01 is needed by (installed) > openofficeorg-core01-1.9.122-1.i586 > > The two packages are dependant on each other so I can't remove either. > *sigh* > So, how do I remove them? > > Dave-- ------------------------------------------------------------ Peter Kjellstr?m | National Supercomputer Centre | Sweden | http://www.nsc.liu.se -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20050805/e205b354/attachment-0002.sig>
>yum remove PACKAGE > >But will this work when the original isntall was done with RPMs and not YUM? I attempted to install OpenOffice.org Beta via YUM, but couldn't find it in a repository. So I had to isntall it from the RPMs offered on the OpenOffice.org site. Then, when I tried to uninstall it, I tried: # yum remove openoffice* ... and: # yum remove openoffice ... but it didn't work. If I have something installed without YUM, how do I use YUM to uninstall it? Dave