RPM: conditional Requires
by DBabo from LinuxQuestions.org on (#6J9NJ)
Hello,
I'd like to check that the "aws" cli is installed. I need to insure that on both Amazon 2 and Amzon 2023 distributions.
The SPEC is:
Code:Requires: (awscli-1 >= 1.17 or awscli-2 >= 2.14)
Error during an installation on amazon2:
Code:yum install ./cw_ebs-0.0.4-1.amzn2023.noarch.rpm
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Examining ./cw_ebs-0.0.4-1.amzn2023.noarch.rpm: cw_ebs-0.0.4-1.amzn2023.noarch
Marking ./cw_ebs-0.0.4-1.amzn2023.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package cw_ebs.noarch 0:0.0.4-1.amzn2023 will be installed
--> Processing Dependency: (awscli-1 >= 1.17 or awscli-2 >= 2.14) for package: cw_ebs-0.0.4-1.amzn2023.noarch
amzn2-core | 3.6 kB 00:00:00
226 packages excluded due to repository priority protections
--> Finished Dependency Resolution
Error: Package: cw_ebs-0.0.4-1.amzn2023.noarch (/cw_ebs-0.0.4-1.amzn2023.noarch)
Requires: (awscli-1 >= 1.17 or awscli-2 >= 2.14)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigestCurrent rpm version is 4.11.
Code:[root@ip-10-10-35-80 tmp]# rpm --version
RPM version 4.11.3And aws cli:
Code:[root@ip-10-10-35-80 tmp]# rpm -qa | grep aws
awscli-1.18.147-1.amzn2.0.2.noarchThank you for checking.
AZ
I'd like to check that the "aws" cli is installed. I need to insure that on both Amazon 2 and Amzon 2023 distributions.
The SPEC is:
Code:Requires: (awscli-1 >= 1.17 or awscli-2 >= 2.14)
Error during an installation on amazon2:
Code:yum install ./cw_ebs-0.0.4-1.amzn2023.noarch.rpm
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Examining ./cw_ebs-0.0.4-1.amzn2023.noarch.rpm: cw_ebs-0.0.4-1.amzn2023.noarch
Marking ./cw_ebs-0.0.4-1.amzn2023.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package cw_ebs.noarch 0:0.0.4-1.amzn2023 will be installed
--> Processing Dependency: (awscli-1 >= 1.17 or awscli-2 >= 2.14) for package: cw_ebs-0.0.4-1.amzn2023.noarch
amzn2-core | 3.6 kB 00:00:00
226 packages excluded due to repository priority protections
--> Finished Dependency Resolution
Error: Package: cw_ebs-0.0.4-1.amzn2023.noarch (/cw_ebs-0.0.4-1.amzn2023.noarch)
Requires: (awscli-1 >= 1.17 or awscli-2 >= 2.14)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigestCurrent rpm version is 4.11.
Code:[root@ip-10-10-35-80 tmp]# rpm --version
RPM version 4.11.3And aws cli:
Code:[root@ip-10-10-35-80 tmp]# rpm -qa | grep aws
awscli-1.18.147-1.amzn2.0.2.noarchThank you for checking.
AZ