Koozali.org: home of the SME Server

smecontribs and rrdtool - how to exclude this package AND its dependencies?

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Updating rddtools from smecontribs brakes sme7admin.
So I try to exclude this package, but the deps are causing problems.
Man yum does not seems to have a way to exclude a package and its deps as far as I can tell.
Any assistance would be great, the alternative is to proceed with the updates, then remove the package etc. - not ideal.


Code: [Select]
[root@gateway0 /]# yum update --exclude=rrdtool.i386
[SNIP...]
--> Running transaction check
--> Processing Dependency: librrd.so.2 for package: rrdtool-perl
--> Processing Dependency: rrdtool = 1.2.27-2.el4 for package: rrdtool-perl
--> Finished Dependency Resolution
Error: Missing Dependency: librrd.so.2 is needed by package rrdtool-perl
Error: Missing Dependency: rrdtool = 1.2.27-2.el4 is needed by package rrdtool-perl

I tried to exclude the deps, it does not work.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline raem

  • *
  • 3,972
  • +4/-0
chris burnat

Sometimes the answer is where you don't expect to find it.

From http://wiki.contribs.org/Backup_with_dar

To prevent updates from overwriting the modified rpm do:

db yum_repositories setprop smeupdates Exclude e-smith-backup
expand-template /etc/yum.conf

Future updates to this rpm will need to be done manually, until such time as it is included in the base release and will then be updated by the standard yum update process.


Of course replace the repository & rpm name to suit your needs.
...

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Thank you Ray, but it does not seem to help unless I made an error somewhere. - rrdtool is excluded OK, but yum is still trying to pull the deps:

Code: [Select]
[root@gateway0 /]# db yum_repositories setprop smecontribs Exclude rrdtool.i386
[root@gateway0 /]# expand-template /etc/yum.conf
##/etc/yum.conf:
[smecontribs]
enabled=1
mirrorlist=file:///etc/yum.repos.d/mirrors-smecontribs
name=SME Server - contribs
gpgcheck=1
enablegroups=1
exclude=rrdtool.i386

Code: [Select]
[root@gateway0 /]# yum update
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
[SNIP...]
--> Running transaction check
--> Processing Dependency: librrd.so.2 for package: rrdtool-perl
--> Processing Dependency: rrdtool = 1.2.27-2.el4 for package: rrdtool-perl
--> Finished Dependency Resolution
Error: Missing Dependency: librrd.so.2 is needed by package rrdtool-perl
Error: Missing Dependency: rrdtool = 1.2.27-2.el4 is needed by package rrdtool-perl
================================================================
No new rpms were installed. No additional commands are required.
================================================================
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline raem

  • *
  • 3,972
  • +4/-0
chris burnat

Maybe try to Exclude the dependencies as well.
Separate with a comma in the db command

see
db yum_repositories getprop base Exclude

kernel,kernel-smp,mkinitrd,mdadm,initscripts
« Last Edit: March 27, 2008, 09:35:53 AM by RayMitchell »
...

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Thank you Ray,

Although you say you used Exclude (with capital E), your smecontribs showed an exclude property (with a lower case e)
Fix that and try again

I copied and pasted CL and part of yum.conf , no errors possible.  Not sure what to fix here.

Quote
If that doesn't fix it, maybe then try to Exclude the dependencies as well.
Separate with a comma in the db command

see
db yum_repositories getprop base Exclude

kernel,kernel-smp,mkinitrd,mdadm,initscripts


My next port fo call.  However, I already have tried adding the packages in question in  --exclude=packages with yum on command line, it did not help.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline raem

  • *
  • 3,972
  • +4/-0
chris burnat

Quote
I copied and pasted CL and part of yum.conf , no errors possible.

Sorry, I saw later that it was yum.conf you were quoting, therefore the case was OK.
...

Offline pfloor

  • ****
  • 889
  • +1/-0
Chris, you have to exclude them all (or remove them first). Did you try?:

yum --exclude=rrdtool,rrdtool-perl,librrd update
Or maybe even:
yum --exclude=*rrd* update

Or

db yum_repositories setprop smecontribs Exclude rrdtool,rrdtool-perl,librrd
Or maybe even:
db yum_repositories setprop smecontribs Exclude *rrd*

Or even this:
yum --disablerepo=smecontribs update
In life, you must either "Push, Pull or Get out of the way!"

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Many thanks Paul,

db yum_repositories setprop smecontribs Exclude rrdtool,rrdtool-perl,librrd

This has done it nicely, did not try your other suggestions, they should also be OK.

Incidentaly, now I have an issue with sysmon:

Error: Missing Dependency: rrdtool >= 1.2 is needed by package smeserver-sysmon

As much as I appreciate sme7admind, I may have to consider ditching it until fixed. With some 15 systems to upgrade, its becoming a real pain.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline pfloor

  • ****
  • 889
  • +1/-0
Many thanks Paul,

This has done it nicely, did not try your other suggestions, they should also be OK.

Incidentaly, now I have an issue with sysmon:

Error: Missing Dependency: rrdtool >= 1.2 is needed by package smeserver-sysmon

As much as I appreciate sme7admind, I may have to consider ditching it until fixed. With some 15 systems to upgrade, its becoming a real pain.
Now you're in a quandary.  Looks like updating smeserver-sysmon requires rrdtool >= 1.2 but if you update to that then it will break sme7admin.

Maybe try:

db yum_repositories setprop smecontribs Exclude rrdtool,rrdtool-perl,librrd,smeserver-sysmon

You'll have to run the older version of smeserver-sysmon then remove those "excludes" when the "breakage" is fixed and then update those.
In life, you must either "Push, Pull or Get out of the way!"

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Now you're in a quandary.  Looks like updating smeserver-sysmon requires rrdtool >= 1.2 but if you update to that then it will break sme7admin.

Maybe try:
db yum_repositories setprop smecontribs Exclude rrdtool,rrdtool-perl,librrd,smeserver-sysmon
You'll have to run the older version of smeserver-sysmon then remove those "excludes" when the "breakage" is fixed and then update those.

Yep, about all that can be done.  It gets worse, I actually proceeded with the upgrade from smecontribs repo on a test box with the "older" version of smeserver-sysmon installed, and this contrib is now broken  - only 3 graphs displayed...  Will raise a bug.  Thanks for assistance, it is a little confusing.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
It gets worse, I actually proceeded with the upgrade from smecontribs repo on a test box with the "older" version of smeserver-sysmon installed, and this contrib is now broken  - only 3 graphs displayed...  Will raise a bug. 

No need to raise a bug.  Deleting the rrd files after upgrading has fixed the problem - new files are rebuilt and all is OK.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
No need to raise a bug.  Deleting the rrd files after upgrading has fixed the problem - new files are rebuilt and all is OK.

No, you should raise a bug. If upgrading the contrib requires the rrd files to be deleted, the contribs should do so. Remember - it should "just work".