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

Bug: Can't install on immutable Fedora #444

Open
watzon opened this issue Oct 5, 2024 · 0 comments
Open

Bug: Can't install on immutable Fedora #444

watzon opened this issue Oct 5, 2024 · 0 comments

Comments

@watzon
Copy link

watzon commented Oct 5, 2024

Basic info

Distro (Name and version) PHP Version Valet version
Ex: Kinoite 40 8.3 v2.2.2
  • [x ] I've checked the issue queue and could not find anything similar to my bug.
  • [ x] I'm on the latest version of valet-linux (valet --version): <Valet-Linux-Version>
  • [ x] I've run valet fix and valet install after updating and before submitting my issue/feature.

What is the problem?
valet install relies on dnf for Fedora distros, and while dnf does exist on immutable Fedora variants, it can't be used to install packages.

What was supposed to happen?
It should either install nginx through homebrew (available on immutable Fedora distros) or use other means to look for an already installed nginx.

What actually happened?
I have nginx and dnsmasq installed, but since it attempts to use Dnf.php to see if nginx is installed it doesn't think it's available and attempts to install it which fails.

How to reproduce this?

  • Install any immutable Fedora distro (I'm on Aurora which is a Kinoite variant)
  • Install PHP and composer.
  • Install valet-linux using composer.
  • Run valet install. It fails.
  • Install nginx through brew.
  • Attempt to run valet install again. Still fails.

What is the solution?
There are a couple ways I could see this being solved. The easiest might just be to check if the Fedora distro is an immutable one (either Kinoite or Silver Blue based) and if so, use homebrew instead. Alternately the rpm command can be used to see if nginx and dnsmasq are installed and it should work regardless of the distro. rpm -qa | grep nginx shows nginx as being installed on my system.

Sources
All sources related to the bug. If the bug uses external tools like PHP extensions it should at
least contain a link to the tool. Any other media which proves helpful can be included here.

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

1 participant