Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-27-09, 10:26 AM   #1
uOpt
FreeBSD cheering section
 
uOpt's Avatar
 
Join Date: Nov 2004
Location: Boston, MA, USA
Posts: 609
Default Reinstalling userland only (without taking X11 down)

I need to reinstall the userland parts of the nvidia drivers, namely the *.so files.

(An OS upgrade overwrote some of them).

I want to do so without taking the X11 server (which still works fine because it was started when the NVidia stuff was intact) down.

This should be easy using this commandline:
Code:
NVIDIA-Linux-x86_64-173.14.18-pkg2.run --expert \
  --no-precompiled-interface \
  --accept-license --no-questions \
  --no-x-check \
  --no-kernel-module
But it isn't. Although I told the drivers to not mess with the kernel module, the install program still aborts because the module is loaded.

I can't seem to find an option to just install the userland.

This looks like a bug to me, I think the --no-kernel-module option should also ignore whether a module is currently loaded or not.

I will also need this "userland-only" option in the future to update chroots. I have a number of chroots, some of them I want to be able to use X11 with DRI. Obviously, when running the NVidia drivers in a chroot you can't have it do anything but userland updates.
__________________

My Unix benchmark results
uOpt is offline   Reply With Quote
Old 05-27-09, 11:06 AM   #2
Dragoran
Registered User
 
Join Date: May 2004
Posts: 711
Default Re: Reinstalling userland only (without taking X11 down)

Extract the archive and copy the files by hand.
Dragoran is offline   Reply With Quote
Old 05-27-09, 11:36 AM   #3
uOpt
FreeBSD cheering section
 
uOpt's Avatar
 
Join Date: Nov 2004
Location: Boston, MA, USA
Posts: 609
Default Re: Reinstalling userland only (without taking X11 down)

Quote:
Originally Posted by Dragoran View Post
Extract the archive and copy the files by hand.
That doesn't quite work since you miss all the symlinks and the location for the 32 bit versions and all the other stuff that is done by the install program at runtime. The package only contains the very lowest level of actual *.so files. It's not like an rpm where `rpm2cpio foo.rom | cpio -di` gets the job done in an emergency.

The install program used to be a shellscript IIRC, but now it's an ELF binary and I can't seem to find a way to make it think the modules isn't already loaded (nor, as I said, to make it not care).
__________________

My Unix benchmark results
uOpt is offline   Reply With Quote
Old 05-27-09, 03:04 PM   #4
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: Reinstalling userland only (without taking X11 down)

That's a pretty uncommon use case, so I don't think we can justify spending time on this. Feel free to send us a patch, though.

http://cgit.freedesktop.org/~aplattn...dia-installer/
AaronP is offline   Reply With Quote
Old 05-28-09, 05:43 AM   #5
nevion
Registered User
 
Join Date: Dec 2004
Posts: 74
Default Re: Reinstalling userland only (without taking X11 down)

Happened to me all the time on ubuntu for a few years (there are numerious people who bitched about it in those times, it's come up here before too), it really liked installing its crud and overwriting your files when installing from the nvidia driver. A bit out dated but oh how I wished I could do it then. Not as useful now as then but when opensuse upgrades an xlib component/mesa, it'd still nice to be able to reinstall without killing x/session/complete driver reinstall.
nevion is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:41 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.