Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPM 2.1-1 does not install on Rocky Linux 8 or Centos7 #301

Open
Luke-LoPresti opened this issue Jun 16, 2024 · 1 comment
Open

RPM 2.1-1 does not install on Rocky Linux 8 or Centos7 #301

Luke-LoPresti opened this issue Jun 16, 2024 · 1 comment

Comments

@Luke-LoPresti
Copy link

When attempting to install the lcov rpm using yum/dnf, it fails with the following error.

yum install lcov-2.1-1.noarch.rpm

...
...
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: Transaction test error:
package lcov-2.1-1.noarch is intended for a different operating system

Tested on Rocky Linux 8 and Centos7.
The previous rpm lcov-2.0-1.noarch.rpm installs with no errors.

@Luke-LoPresti Luke-LoPresti changed the title RPM does not install on Rocky Linux 8 or Centos7 RPM 2.1-1 does not install on Rocky Linux 8 or Centos7 Jun 16, 2024
@henry2cox
Copy link
Collaborator

You may be able to get this to work, by using the --ignoreos RPM flag. man yum indicates that there is no similar flag - and it is not clear whether you can pass additional RPM flags to yum, nor how to do it, if it is possible.

I confess to not knowing how this is encoded in the RPM - and did not even realize that this was an issue - but it does appear that there are some flags one can use while generating the RPM to make it more generic. I'll experiment.

henry2cox added a commit that referenced this issue Jun 21, 2024
Signed-off-by:  Henry Cox <henry.cox@mediatek.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants