Author Topic: src.rpm installation & removal  (Read 544 times)

Ice-9

  • Member
  • **
  • Posts: 322
  • Kudos: 0
    • http://users.pandora.be/Ice9
src.rpm installation & removal
« 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?
He was sitting on a rock. He was barefoot. His feet were frosty with ice-nine .....

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
src.rpm installation & removal
« Reply #1 on: 18 December 2002, 02:31 »
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...
Someone please remove this account. Thanks...

Ice-9

  • Member
  • **
  • Posts: 322
  • Kudos: 0
    • http://users.pandora.be/Ice9
src.rpm installation & removal
« Reply #2 on: 18 December 2002, 02:55 »
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.
He was sitting on a rock. He was barefoot. His feet were frosty with ice-nine .....

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
src.rpm installation & removal
« Reply #3 on: 18 December 2002, 03:14 »
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: [Select]

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

Someone please remove this account. Thanks...