wazuh / wazuh-packages

Wazuh - Tools for packages creation
https://wazuh.com
GNU General Public License v2.0
100 stars 90 forks source link

Cannot remove dependency curl #2773

Closed javiersanchz closed 6 months ago

javiersanchz commented 6 months ago

Description

Wazuh version Component
4.8.0-alpha2 Indexer

Description


12/01/2024 18:40:12 INFO: Removing curl.
12/01/2024 18:40:13 ERROR: Cannot remove dependency: curl.
[root@ip-172-31-42-241 ec2-user]# bash wazuh-install.sh --generate-config-files -i
12/01/2024 13:40:12 INFO: Removing curl.
12/01/2024 13:40:13 ERROR: Cannot remove dependency: curl.
...
[root@ip-172-31-42-241 ec2-user]# bash wazuh-install.sh --wazuh-indexer node-1 -i
12/01/2024 13:43:19 INFO: Removing curl.
12/01/2024 12:15:12 ERROR: Cannot remove dependency: curl.
...
[root@ip-172-31-42-241 ec2-user]# bash wazuh-install.sh --start-cluster -i
12/01/2024 13:44:56 INFO: Removing curl.
12/01/2024 12:15:12 ERROR: Cannot remove dependency: curl.

Related

c-bordon commented 6 months ago

As indicated in the comment on the issue, this is related to this issue, this problem is due to the name of the packages required by the WIA, Amazon Linux 2023 has specific packages for these dependencies. For this reason, when the dependency validation is carried out, the WIA looks for the curl package installed, and when it does not find it, it is added to the list of uninstalled WIA dependencies. When the installation is done, it does not fail, because yum detects that there is already a package that satisfies this installation, for this reason, the WIA continues, and once the installation is finished, the WIA is responsible for uninstalling those packages necessary by the WIA but They are not needed for product packages, and when you try to remove curl you can't because it is a package protected by the OS. In Amazon Linux 2023, the curl package is called curl-minimal.

All this will be resolved in the issue above

teddytpc1 commented 6 months ago

To be resolved in #2688.