Disable update for a specific software !

rowebca

Verified User
Joined
Jan 3, 2020
Messages
68
Location
Montreal, QC, Canada
Hi,

I want to disable updates for cURL, in fact custombuild is downgrading cURL from 7.87 (that I need) to 7.76 that is not working with one of my application.
Every morning, at update cron, DirectAdmin is re-compiling php with the 7.76 version that is not good. I know how to force this to not touch those files, but I want to be disabled by Directadmin.

Please look at the attached screenshot.

Regards,
GB
 

Attachments

  • curlUP.png
    curlUP.png
    17.9 KB · Views: 17
but I want to be disabled by Directadmin.
DA has decided not to support curl anymore and that the OS should be the one which supports curl. Which means in several cases curl would be downgraded.

If you want to run your own curl and have DA don't mess with it, just disable curl building from custombuild.

Code:
cd /usr/local/directadmin/custombuild
./build set curl no
./build update

Or use the custombuild option to set it no in options.conf. However, if you have an up to date DA version, it shouldn't be in there anyway, because DA removed it several versions ago.

So take care that your OS is not updating it. If you run a RH alike OS (like centos) you could add curl to the yum.conf exclude line to prevent the OS from updating too.
 
No, is not so simple, cURL is not administrated by DA, but is downgraded by DA (funny):
Are you using the latest DA version?

It might be that it says not a valid option because it's not used anymore.
Check your options.conf both in the custombuild and via SSH to see if you have it as an option present somewhere, only need is to remove it.

If yes you could remove it.
You could also try
Code:
cd /usr/local/directadmin/custombuild
./build update
./build versions
and see if it's still present and want's to downgrade after that.
 
Found something interesting about this from another user.

He had the same problem and the fix was to install the custom wanted curl in a different directory than DA is/was using.
 
Thank you Richard, it didn't work still DA downgraded for me. I was not capable to recompile PHP with custom directory using "with-curl=/custom-directory/curl". And the support is not helping me with nothing. It is unbelievable ! Because of this old version of cURL, sa-update failed to update too...

Regards,
GB
 
What OS/version are you running?

For Debian I just use backports to get a newer version and it's been just fine as it replaces the older system curl.
 
it didn't work still DA downgraded for me.
Even with curl* excluded from yum.conf as you could see from the other post you just responded too? Because then DA should not be able to install curl anymore as it also uses yum for curl nowadays.

I don't know how to exclude these kinds of things in apt yet, but maybe @cjd does.
 
On Debian based distro's there's a couple ways to lock a package version, here's some links to detailed instructions:



I prefer not to do this, as security updates won't be installed either. I would rather risk using backports in these situations and just let it update. For the few exceptions (mostly just curl and it's dependencies), I see it as an acceptable risk, and I don't have to deal with source packages (unless I absolutely have to).
 
I prefer not to do this, as security updates won't be installed either.
Ofcourse. I'm just asking because in case it would be necessary, like in yum for example *ftp* is also present as exclusion line and for this reason one can't install an ftp client.
So it would be good to be able to remove this from the apt exclusion list, and then after ftp commandline client installation, put back the exclusion.

For this reason I ask, but it's good to point out to others to don't use it when not absolutely necessary.
Thanks!
 
Well,

I am asking DA support for days for a solution, all I want is that DA to not mixed in my server configuration, and the support told me it shouldn't mix but reality is different. If DA don't control cURL, DA should do that. What a joke!
 
After 13 days of DirectAdmin "tech" support, I have no solution for my problems. DirectAdmin should replace "Includes unlimited technical support" with "No technical support", at least they will be honest with customers. What a waste !
 
It's unlimited technisch support for DA, not for the OS. You didn't state what OS you were running as @cjd asked.

And how did you install the 7.87 version from curl?
 
I am using Almalinux 9. Yes, the default cURL is 7.76.1, but is not the business of DA what curl I install and is DA who is automatically downgrading the version not OS (I disabled it in yum.conf). So if DA don't care / don't administrate cURL DA should stay away from downgrading curl installed on my OS.



Regards,
GB
 

Attachments

  • curl7871.png
    curl7871.png
    10.7 KB · Views: 11
  • php-curl7871.png
    php-curl7871.png
    3.6 KB · Views: 7
Last edited:
I'm going to assume that DA is simply running a dependency update for anything that is missing using the package manager, and if you have removed curl from the system and manually installed it, yum thinks it's not installed and reinstalls the older version over your newer one as it's possibly not registered in the package manager. Maybe as a work around, leave the system one installed, and have your manual install overwrite the files of the older package, make sure the package is locked in yum to the old version so it's not overwritten by an update via the package manager, which should leave your new version alone (and not reinstall due to dependency missing). I have done this on Debian/APT for some other software and it works fine (I always make sure to use statically compiled binaries to avoid library version problems whenever possible when doing this), assuming it can be done the same with yum.
 
I understand but why is running over cURL if they are saying "we don't care about cURL"? They should give me the option to disable this in DA build, ids not the OS who is downgrading, yum is setup to not update cURL.
I have a app who is not working with default version 7.76 of cURL from Almalinux 9 so I have to changed to 7.87. So the only solution I have is to disable build updates and do this automatically with my script, avoiding update of cURL. From my point of view DA should not run update check on things they are saying don't want to control it.

Regards,
GB
 
OK, they don't probably care what version of curl is on the system. But it is a build dependency for many packages, so it's basically the first dependency it installs if missing from the package manager installed packages. Your removing it from yum installed packages works against how the whole package system works. Try my suggestion above it will probably work for you. Every time DA updates and runs it's setup script it will reinstall curl if it's missing from the yum installed packages, if it's at least there and locked it won't do anything and leave your manually installed version in place. (For yum it does a: "yum --quiet --assumeyes install curl")
 
Back
Top