Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: chris burnat on March 27, 2008, 08:01:34 AM
-
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.
[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 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.
-
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:
[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
[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 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
-
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.
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 burnat
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.
-
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
-
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.
-
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.
-
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.
-
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.
-
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".