Stop Microsoft
Operating Systems => Linux and UNIX => Topic started by: Ice-9 on 18 December 2002, 02:21
-
I installed the NVidia drivers from the 3023 src.rpm packages, it worked great.
Now, assuming that I would like to update my drivers to version 4019, again from the src.rpm packages, would it be safe to remove the content from
/usr/src/redhat/BUILD
/usr/src/redhat/SOURCES
/usr/src/redhat/SPECS
/usr/src/redhat/RPMS/i386
that was put there during the installation of the 3023 drivers?
I suppose since I made the rpm's they're more suited for my system than if I installed the "stock rpm's" from NVidia's site?
I also assume that since these were the directories created from the src.rpm to generate the final rpm packages, and I installed the rpm's afterwards these directories aren't actually used by the driver?
Or should I leave it all where it is and just build new rpm packages with the 4019 source?
-
Leave the directories but you can safely remove all files under the directories. The directory structure is used by all source rpm files, not just nVidia...
-
Ok thanks.
Btw, does this apply to the content of the BUILD dir too?
I saw a lot of things in there like C headers and stuff .....they appear to be version specific though.
-
Yes, all directories under /usr/src/redhat can be cleaned out (again, do not delete the directories, just the files). Or just type "# rpmbuild --clean specfile.spec" from within the SPEC dir but that will only clean the build tree not the sources. I always do it manually as it takes just a few seconds.
A clean RPM source tree would have the following empty directories:
/usr/src/redhat/BUILD
/usr/src/redhat/RPMS/athlon
/usr/src/redhat/RPMS/i386
/usr/src/redhat/RPMS/i486
/usr/src/redhat/RPMS/i586
/usr/src/redhat/RPMS/i686
/usr/src/redhat/RPMS/noarch
/usr/src/redhat/SOURCES
/usr/src/redhat/SPECS
/usr/src/redhat/SRPMS
You could write a script called "cleanrpmdirs" that looks something like this:
[ December 17, 2002: Message edited by: void main ]