[elrepo] nvidia-detect feature enhancement
Phil Perry
phil at elrepo.org
Fri Feb 13 11:29:48 EST 2015
On 13/02/15 15:08, Manuel Wolfshant wrote:
> On 02/13/2015 05:04 PM, Phil Perry wrote:
>> # yum install $(nvidia-detect)
>>
>> to behave as desired - either it will install the appropriate package or
>> yum will fail due to no package name.
>>
>> The only thing I'm unsure how to handle is nvidia-detect's warning
>> messages. I don't really want to suppress these by default, but if we
>> don't then yum will treat them as a list of arguments and try to parse
>> them (not what we want).
>>
>
> # yum install $(nvidia-detect 2> /dev/null)
>
For me this loses the simplicity of:
# yum install $(nvidia-detect)
at which point we may as well stick with the original proposal of yum
install $(nvidia-detect -t).
Presently we could do an even less elegant:
# yum install $(nvidia-detect | grep kmod-nvidia | awk '{ print $9 }')
but I'd like to try to keep it as simple as possible so users have less
chance of getting it wrong whilst still providing the functionality
sysadmins want :-)
More information about the elrepo
mailing list