How to uninstall unused software (Imapsync & WP-CLI)?

Pieter

Verified User
Joined
Mar 27, 2016
Messages
31
On a new VPS:
AlmaLinux 10
DirectAdmin: v1.686

Running a './build versions' command I see that the following is installed by default:

Installed version of WP-CLI: 2.12.0
Installed version of Imapsync: 2.290

Not using Wordpress / IMAP, so I would like to remove it from my VPS.

The following is not working
./build set imapsync no
./build set wp no

Where can I disable / delete both?

All the best,
Pieter
 
The following is not working
Those are commands you can only use in the custombuild directory for custombuild, try like this:
Code:
da build set imapsync no
da build set wp no
then restart directadmin.

If still not gone, try this afterwards
Code:
da build update
da build list_removals
da build remove_items

That should do the trick.
 
Thanks Richard!

The commands mentioned in my first post were used in the custombuild directory, e.g.:
Code:
root@server:~# cd /usr/local/directadmin/custombuild/
root@server:/usr/local/directadmin/custombuild# ./build set imapsync no
imapsync is not a valid option.

Tried your suggested commands and it returns the same message:
Code:
root@server:~# da build set imapsync no
imapsync is not a valid option.
root@server:~# da build set wp no
wp is not a valid option.

The options.conf shows no lines containing wp or imapsync
Code:
cat /usr/local/directadmin/custombuild/options.conf

The da build command mentions them both
Code:
root@server:~# da build
Install/update server components
--------------------------------
da build awstats                                   # disabled by options.conf
da build clamav                                    # disabled by options.conf
...
da build imapsync
da build wp
 
"wp" and "imapsync" cannot be removed from the list of software installed by DA CustomBuild.

But you can only disable them from using by your customers if you do not want to provide those features. It can be done, for example, via custom Feature Sets. Also "WordPress" feature can be disabled in User's Package.
 
Oh that's confusing as they -are- mentioned in the da build command list. Maybe better to remove them from the list then as they throw errors anyway.
They are in the list because you can reinstall or update them when the new version is available or use custom version of that tool via "custom_versions.txt" file, because both of them are here:
Code:
[root@server2 ~]# grep wp /usr/local/directadmin/custombuild/versions.txt
wp-cli:2.12.0:
[root@server2 ~]#
[root@server2 ~]# grep imapsync /usr/local/directadmin/custombuild/versions.txt
imapsync:2.290:
[root@server2 ~]#
but you cannot disable or remove them using DA CB tool.
 
I've got DA running on quite a few servers, even my DNS servers, and I just leave things like that. I see them as features, not services so they might take a few MB of drive space up, but they aren't causing any mischief or hogging loads of resources, Might be more of a chore uninstalling them than just leaving them be.
 
Back
Top