Forum: Cfengine Help Subject: Re: Yum Package problem in CF3 Author: babudro Link to topic: https://cfengine.com/forum/read.php?3,19078,19083#msg-19083
YUM does have its quirks, but I think it should work. If I already have a software package installed I get inconsistent responses from YUM. For example, if I have PostgreSQL 8.4.4 installed and try to install 8.1.1 (something I certainly should not do), then YUM tells me both that it is and is not installed depending on whether I ask it to "upgrade" or "install". # yum upgrade postgresql-8.1.11-1.el5_1.1.x86_64 Setting up Upgrade Process Package(s) postgresql-8.1.11-1.el5_1.1.x86_64 available, but not installed. No Packages marked for Update # yum install postgresql-8.1.11-1.el5_1.1.x86_64 Setting up Install Process Package matching postgresql-8.1.11-1.el5_1.1.x86_64 already installed. Checking for update. Nothing to do But if I first remove the newer package, so that I have a condition where the package is not installed, then I get the correct results: # yum install postgresql-8.1.11-1.el5_1.1.x86_64 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package postgresql.x86_64 0:8.1.11-1.el5_1.1 set to be updated --> Finished Dependency Resolution (snip) If I install this version and then try again, I get the expected results: # yum install postgresql-8.1.11-1.el5_1.1 Setting up Install Process Package postgresql-8.1.11-1.el5_1.1.x86_64 already installed and latest version Nothing to do So from this I conclude that what you want is possible from the perspective of YUM. I haven't tried to do it through Cfengine yet, but it seems a reasonable hypothesis that the problem is that the version number is not being passed to YUM. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine