Operating Systems > Linux and UNIX

src.rpm installation & removal

(1/1)

Ice-9:
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?

voidmain:
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...

Ice-9:
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.

voidmain:
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:


--- Code: ---
--- End code ---

[ December 17, 2002: Message edited by: void main ]

Navigation

[0] Message Index

Go to full version