Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit 8536351

Browse files
authored
Merge pull request #60 from t0xic0der/f34-cuda-installation
F34 reworked CUDA installation method
2 parents 859b18c + 512aee0 commit 8536351

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<h1 align="center">nvidia-auto-installer-for-fedora</h1>
2-
<p align="center">v0.3.5 (23 September 2020) (COPR pending) and v0.3.0 (04 June 2020) (Executable binary)</p>
32
<p align="center">A CLI tool which lets you install proprietary NVIDIA drivers and much more easily on Fedora 32 and above</p>
43

54
<p align="center">

nvautoinstall.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%global srcname nvidia-auto-installer-for-fedora
22

33
Name: nvautoinstall
4-
Version: 0.3.5
4+
Version: 0.3.6
55
Release: 0%{?dist}
66
Summary: NVIDIA Auto Installer for Fedora
77

@@ -36,6 +36,10 @@ A CLI tool which lets you install proprietary NVIDIA drivers and much more
3636

3737
#-- CHANGELOG -----------------------------------------------------------------#
3838
%changelog
39+
* Sun May 09 2021 Akashdeep Dhar <[email protected]>
40+
- v0.3.6
41+
- Reworked installation method for CUDA repo compatibility
42+
- Minor patch leading to a version bump
3943
* Thu Apr 29 2021 Akashdeep Dhar <[email protected]>
4044
- v0.3.5
4145
- Corrected unicode escape sequences for colors

src/nvautoinstall/MainFunction.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ def meta(self):
146146
exec_status_code = os.system("dnf install -y xorg-x11-drv-nvidia-cuda")
147147
return exec_status_code == 0
148148

149+
def stop(self):
150+
exec_status_code = os.system("dnf module disable -y nvidia-driver")
151+
return exec_status_code == 0
152+
149153
def main(self):
150154
exec_status_code = os.system("dnf install -y cuda")
151155
return exec_status_code == 0
@@ -321,6 +325,11 @@ def nvrepo(self):
321325
DecoratorObject.section_heading("REFRESHING REPOSITORY LIST...")
322326
if PlCudaInstaller.rpup():
323327
DecoratorObject.success_message("Repositories have been refreshed")
328+
DecoratorObject.section_heading("DISABLING NVIDIA DRIVER MODULE...")
329+
if PlCudaInstaller.stop():
330+
DecoratorObject.success_message("NVIDIA DRIVER module has been disabled")
331+
else:
332+
DecoratorObject.failure_message("NVIDIA DRIVER module could not be disabled")
324333
else:
325334
DecoratorObject.failure_message("Repositories could not be refreshed")
326335
else:

src/nvautoinstall/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
# You should have received a copy of the GNU General Public License
1616
# along with nvautoinstall. If not, see <https://www.gnu.org/licenses/>.
1717

18-
__version__ = '0.3.5'
18+
__version__ = '0.3.6'

0 commit comments

Comments
 (0)