Hi!
I recently removed (rpm -e) all the openoffice packages (2.0.4) from Centos and replaced them with Sun's packages for openoffice 2.4. Works fine.
however, now whenever I run yum update I get this:
============================================================================= Package Arch Version Repository Size ============================================================================= Updating: openoffice.org-base i386 1:2.0.4-5.4.25 updates 868 k openoffice.org-calc i386 1:2.0.4-5.4.25 updates 7.7 M openoffice.org-draw i386 1:2.0.4-5.4.25 updates 1.1 M openoffice.org-emailmerge i386 1:2.0.4-5.4.25 updates 63 k openoffice.org-graphicfilter i386 1:2.0.4-5.4.25 updates 205 k openoffice.org-impress i386 1:2.0.4-5.4.25 updates 1.6 M openoffice.org-javafilter i386 1:2.0.4-5.4.25 updates 148 k openoffice.org-math i386 1:2.0.4-5.4.25 updates 1.3 M openoffice.org-pyuno i386 1:2.0.4-5.4.25 updates 184 k openoffice.org-writer i386 1:2.0.4-5.4.25 updates 3.0 M openoffice.org-xsltfilter i386 1:2.0.4-5.4.25 updates 97 k Installing for dependencies: openoffice.org-core i386 1:2.0.4-5.4.25 updates 88 M
Transaction Summary ============================================================================= Install 1 Package(s) Update 11 Package(s) Remove 0 Package(s)
Total download size: 104 M
what I'd like to know is why does it think it needs to update all those openoffice packages? They don't exist on the machine anymore, I removed all of 'em.
How can I get it to stop doing this?
Thanks!
On Fri, Apr 4, 2008 at 9:06 PM, fred smith fredex@fcshome.stoneham.ma.us wrote:
============================================================================= Package Arch Version Repository Size ============================================================================= Updating: openoffice.org-base i386 1:2.0.4-5.4.25 updates 868 k
what I'd like to know is why does it think it needs to update all those openoffice packages? They don't exist on the machine anymore, I removed all of 'em.
The upstream and CentOS openoffice packages provide the same files and use an epoch value ( the 1: in the version string you see above) This value is basically rpm's way of forcing a lower version number to be considered an upgrade.
How can I get it to stop doing this?
You'll have to add an exclude=openoffice* line to your yum.conf or base and updates repositories.
fred smith wrote:
Hi!
I recently removed (rpm -e) all the openoffice packages (2.0.4) from Centos and replaced them with Sun's packages for openoffice 2.4. Works fine.
however, now whenever I run yum update I get this:
============================================================================= Package Arch Version Repository Size ============================================================================= Updating: openoffice.org-base i386 1:2.0.4-5.4.25 updates 868 k openoffice.org-calc i386 1:2.0.4-5.4.25 updates 7.7 M openoffice.org-draw i386 1:2.0.4-5.4.25 updates 1.1 M openoffice.org-emailmerge i386 1:2.0.4-5.4.25 updates 63 k openoffice.org-graphicfilter i386 1:2.0.4-5.4.25 updates 205 k openoffice.org-impress i386 1:2.0.4-5.4.25 updates 1.6 M openoffice.org-javafilter i386 1:2.0.4-5.4.25 updates 148 k openoffice.org-math i386 1:2.0.4-5.4.25 updates 1.3 M openoffice.org-pyuno i386 1:2.0.4-5.4.25 updates 184 k openoffice.org-writer i386 1:2.0.4-5.4.25 updates 3.0 M openoffice.org-xsltfilter i386 1:2.0.4-5.4.25 updates 97 k Installing for dependencies: openoffice.org-core i386 1:2.0.4-5.4.25 updates 88 M
Transaction Summary
Install 1 Package(s) Update 11 Package(s) Remove 0 Package(s)
Total download size: 104 M
what I'd like to know is why does it think it needs to update all those openoffice packages? They don't exist on the machine anymore, I removed all of 'em.
How can I get it to stop doing this?
Thanks!
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Probably because "rpm -e {package name}" and "yum remove {package name}" does different things.
I'd suggest run yum remove openoffice.org-core && yum clean all
Rudi Ahlers wrote:
<snip>
Probably because "rpm -e {package name}" and "yum remove {package name}" does different things.
I'd suggest run yum remove openoffice.org-core && yum clean all
They don't really do different things to the rpm database.
yum erase/remove will ALSO solve for and remove dependencies (other things that need to be removed that depend on the packages you want to remove).
HOWEVER ... yum is nothing more than a depsolver and front end that uses rpm to do it's actions, so it is NOT different that rpm -e (it uses rpm -e) when removing files.
Johnny Hughes wrote:
Rudi Ahlers wrote:
<snip>
Probably because "rpm -e {package name}" and "yum remove {package name}" does different things.
I'd suggest run yum remove openoffice.org-core && yum clean all
They don't really do different things to the rpm database.
yum erase/remove will ALSO solve for and remove dependencies (other things that need to be removed that depend on the packages you want to remove).
HOWEVER ... yum is nothing more than a depsolver and front end that uses rpm to do it's actions, so it is NOT different that rpm -e (it uses rpm -e) when removing files.
Oh, I thought yum had a different cache / database of what is installed?
On Sat, Apr 5, 2008 at 6:20 AM, Rudi Ahlers Rudi@softdux.com wrote:
Oh, I thought yum had a different cache / database of what is installed?
Yum keeps a cache and database of what's in the repositories, so it can search more easily when you're looking to install something from the repositories. When it comes to the actual install/removal of applications, that gets farmed out to rpm, so as Ralph stated: with the exception of depsolving, yum remove and rpm -e do the same thing.
Jim Perrin wrote:
On Sat, Apr 5, 2008 at 6:20 AM, Rudi Ahlers Rudi@softdux.com wrote:
Oh, I thought yum had a different cache / database of what is installed?
Yum keeps a cache and database of what's in the repositories, so it can search more easily when you're looking to install something from the repositories. When it comes to the actual install/removal of applications, that gets farmed out to rpm, so as Ralph stated: with the exception of depsolving, yum remove and rpm -e do the same thing.
but then Fred's machine shouldn't have tried to update openoffice?
I hear what Jim is saying with "You'll have to add an exclude=openoffice* line to your yum.conf or base and updates repositories." but that's not practical - this means everyone has to add that exclude line to their yum.conf if they remove stuff they don't want anymore. Correct me if I'm wrong, but it shouldn't work like that
On Sat, Apr 5, 2008 at 7:45 AM, Rudi Ahlers Rudi@softdux.com wrote:
but then Fred's machine shouldn't have tried to update openoffice?
Nope. This is the problem with using 'epoch' values in rpm.
He's installed version 2.whatever via rpm from openoffice.org. CentOS contains openoffice packages in the base and updates repositories. Now when he runs 'yum update' it's going to check his entire package list to see if any of them need updates.
his version (2.4.0) is "older" than what's in centos (1:2.0.4) because of the use of epoch.
There aren't many packages these days that use epoch values anymore, but when you stumble across one, it can throw you for a moment.
The exclude line isn't needed for all things, just special cases.
I hear what Jim is saying with "You'll have to add an exclude=openoffice* line to your yum.conf or base and updates repositories." but that's not practical - this means everyone has to add that exclude line to their yum.conf if they remove stuff they don't want anymore. Correct me if I'm wrong, but it shouldn't work like that
--
Kind Regards Rudi Ahlers CEO, SoftDux
Web: http://www.SoftDux.com Check out my technical blog, http://blog.softdux.com for Linux or other technical stuff, or visit http://www.WebHostingTalk.co.za for Web Hosting stuff
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Sat, Apr 05, 2008 at 01:45:59PM +0200, Rudi Ahlers wrote:
but then Fred's machine shouldn't have tried to update openoffice?
Yes it would, because he installed _different_ RPMs of the same name from a different source.
As the OP wrote:
I recently removed (rpm -e) all the openoffice packages (2.0.4) from Centos and replaced them with Sun's packages for openoffice 2.4. Works
This is, essentially, the same sort of issue as dealing with multiple repositories; if you install package "X" from a different source then you need to tell yum to stop maintaining that package.