Comments (3)
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.
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.
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)
- [CI] Add pre-commit support for the project repository
- [DOC] :closed_lock_with_key: Security policy
- After install and run the NVIDIA Auto Installer for Fedora 37 Linux, NVIDIA driver/kernel module not load HOT 1
- problem on 0-nvidia.rules HOT 2
- Dependency Dashboard
- Action Required: Fix Renovate Configuration
- Use Python bindings for DNF instead of interacting directly with shell
- Introduce pre-commit support for the project HOT 1
- Introduce support for rpm-ostree based Fedora Linux releases
- Warn of problems if your primary disk is LUKS encrypted
- Does not work on Fedora 39 HOT 3
- CUDA toolkit on F38
- not work install driver HOT 1
- [Feature request] Include NVIDIA Container Toolkit For Podman
- sudo nvautoinstall driver won't work
- Getting "NVIDIA kernel module missing" despite following all instructions HOT 6
- Weird wayland graphic gui bug HOT 1
- CUDA repository use fedora35
- does this installer work with NVIDIA GeForce GT 755M ? HOT 2
- only 60hz available after installing the drivers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvidia-auto-installer-for-fedora-linux.