3
# ASSUMES THE i686 FOLDER INITIALLY HAS *NO* NVIDIA RPMS
5
# 1. Build the entire NVIDIA package.
6
rpmbuild -bb --target "$(uname -m)" --define "kernel $(uname -r)" ~/src/rpm/SPECS/nvidia-glx.spec
8
# 2. We aren't debugging this thing.
9
rm ~/src/rpm/RPMS/i686/nvidia-glx-debuginfo-*.rpm
11
# 3. Update the local yum repo.
12
mv ~/src/rpm/RPMS/i686/nvidia-glx*.rpm ~/local/repo
13
mv ~/src/rpm/RPMS/i686/kernel-module-nvidia*.rpm ~/local/repo
14
createrepo ~/local/repo
16
# 4. Install the new Nvidia package with yum.
17
sudo yum -y update "nvidia-glx*"
18
# Unnecessary, will be grabbed by previous update.
19
#sudo yum -y update "kernel-module-nvidia-$(uname -r)*"