LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Revert to pristine state after installing nvidia-driver? (http://www.linuxquestions.org/questions/slackware-14/revert-to-pristine-state-after-installing-nvidia-driver-4175426263/)

kikinovak 09-08-2012 12:01 PM

Revert to pristine state after installing nvidia-driver?
 
Hi,

One of my boxes is a dual-boot buildbox for Slackware-13.37 and Slackware64-13.37. It has an NVidia GeForce 6150 graphic card, so I installed the nvidia-driver and nvidia-kernel packages from SlackBuilds.org

The nvidia-driver package contains 'nvidia-switch', a little command-line utility, to switch between libraries replaced by the proprietary driver package and those shipping with X.org.

Only this switch doesn't seem to revert my system to the old state. When trying to compile applications like wxGTK or Firefox ESR, I get complaints about a missing /usr/include/GL/glx.h, and the build exits.

Is there another way to restore my install, e. g. reinstall some of the X.org packages? But which one? I'm a bit lost here.

kikinovak 09-08-2012 12:16 PM

Correct me if I'm wrong, but after grepping /var/log/packages for files in /usr/include/GL, I find the 'mesa' package. So this would be:

Code:

# cd /var/log/packages
# removepkg nvidia-*
# slackpkg reinstall mesa

Right?

ruario 09-08-2012 12:23 PM

Reinstall mesa

EDIT: By the time I posted this I saw that you have it worked out already! :)

ruario 09-08-2012 12:25 PM

Quote:

Originally Posted by kikinovak (Post 4775715)
Correct me if I'm wrong, but after grepping /var/log/packages for files in /usr/include/GL, I find the 'mesa' package. So this would be:

Code:

# cd /var/log/packages
# removepkg nvidia-*
# slackpkg reinstall mesa

Right?

Yep!

ruario 09-08-2012 12:39 PM

FWIW, you could also have used slackpkg itself to check, like so:

Code:

slackpkg file-search "usr/include/GL/glx.h"
Also handy when you want to find out which (not currently installed package) would provide a particular file.

Or the old fashioned way:
Code:

wget -qO- http://mirrors.slackware.com/slackware/slackware-13.37/slackware/MANIFEST.bz2 | bzcat | grep -Fe '||  Package:' -e 'usr/include/GL/glx.h' | grep -vB1 '^|'

kikinovak 09-08-2012 12:45 PM

Thanks for the help, ruario!

BTW, my approach was KISS:

Code:

# grep -R glx.h /var/log/packages

ruario 09-08-2012 12:51 PM

Quote:

Originally Posted by kikinovak (Post 4775733)
Thanks for the help, ruario!

BTW, my approach was KISS:

Code:

# grep -R glx.h /var/log/packages

Yeah that works nicely in this particular case. My suggestion of using slackpkg or the manifest instead was because it would have worked even if you didn't have the package installed. ;)


All times are GMT -5. The time now is 05:33 PM.