GithubHelp home page GithubHelp logo

Comments (3)

ferdnyc avatar ferdnyc commented on June 8, 2024

Putting aside the question of whether you really want to detect such things (why shouldn't the tool to be runnable on CentOS, or RHEL, or anywhere else the necessary dependencies are supported?), it's definitely possible. With python3-distro installed from the Fedora repos:

>>> import distro
>>> distro.linux_distribution()
('Fedora', '32', '')

from nvidia-auto-installer-for-fedora-linux.

gridhead avatar gridhead commented on June 8, 2024

That is pretty clean. I would use that.

Coming to the part of making the tool run on a distribution having all the neccessary dependencies, it is totally possible to do so but it would not be of much use there. I don't think RPMFusion acts as a provider to CentOS and/or RHEL (or do they?).

But if it is executed on distributions in the likes of Ubuntu, Arch Linux etc., it should let know the user from the get-go that by detecting the distribution that the tool is not going to work for them. (But if this becomes an nonfree package - chances of people running it there are pretty low)

from nvidia-auto-installer-for-fedora-linux.

ferdnyc avatar ferdnyc commented on June 8, 2024

I don't think RPMFusion acts as a provider to CentOS and/or RHEL (or do they?).

Yup, in both cases: https://rpmfusion.org/Configuration
(CentOS can use the same repos as the equivalent RHEL release)

I'm almost certain they don't ship with rpmfusion-nonfree-nvidia-driver repo configs preinstalled, though, so RepoInstaller.py would need some changes. Executing some of the setup steps on that Configuration wiki page would be a prereq. The nvidia drivers are in the rpmfusion-nonfree repo on EL7/8. (They are on Fedora, as well, just that they don't need to be pulled from there thanks to the bundled driver-only repo.)

But if it is executed on distributions in the likes of Ubuntu, Arch Linux etc., it should let know the user from the get-go that by detecting the distribution that the tool is not going to work for them.

Agreed. Best way to do that is probably by checking for the presence of the dnf command, and bailing if it's not found. You can't do anything on a system without a working dnf. Whereas if it's useful on the current system, there's at least a fair chance the tool is as well.

from nvidia-auto-installer-for-fedora-linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.