LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   sbopkg batch mode (https://www.linuxquestions.org/questions/slackware-14/sbopkg-batch-mode-4175652348/)

Lockywolf 04-17-2019 11:05 PM

sbopkg batch mode
 
Hello, everyone.

I feel like super stupid, but I don't seem to be able to find a simple thing.

I want to automatically update my nvidia drivers after the kernel update.

To do this, I have written a super simple script:

Code:

#!/bin/sh

#if [$(whoami) -neq 'root']; then
#do
#  exit 1
#done

slackpkg -batch=on reinstall xorg mesa
sbopkg -q -e continue -B -i nvidia-legacy390-driver:COMPAT32=on -i nvidia-legacy390-kernel

But sbopkg keeps asking me if I really want to use the COMPAT32 option.

I guess, I can just add a HEREDOC, to supply 'c' to the standard input, but that seems like a dirty trick. Is there really no command line option to supply a default answer to sbopkg?

Ztcoracat 04-19-2019 10:54 PM

I'm no expert with nVidai but I'm curious.

Has using the COMPAT32 option in the past been an issue for you <or> has it worked?

I did some googling and couldn't find another way to update nvidia drivers. The best I found was a Slackware WiKi on nvidia.
https://slackwiki.com/NVIDIA_Graphics

If there is a default command that you can pass to sbopkg you might try the man page for sbopkg.
https://sbopkg.org/docs.php

Hope you are able to update your nvidia driver.


All times are GMT -5. The time now is 07:23 PM.