# GRUB (GRand Unified Bootloader)
# ====
# There are two versions of GRUB that I'm aware of. The original GRUB is
# now called "GRUB Legacy" and is no longer being developed with new
# features, only bugfixes. The other one is "GRUB 2", which is a rewrite.
# Neither has had a "stable" release, but GRUB is in widespread use.
cd
test -f installed/grub-0.97.tar.gz && mv installed/grub-0.97.tar.gz .
test ! -f grub-0.97.tar.gz &&
wget ftp://alpha.gnu.org/gnu/grub/grub-0.97.tar.gz
# Verify tarball w/ md5sum:
# (this came from my gpg-verified tarball)
echo "cd3f3eb54446be6003156158d51f4884 grub-0.97.tar.gz" | md5sum -c
# Verify tarball w/ sha1sum:
# (this also came from my gpg-verified tarball)
echo "2580626c4579bd99336d3af4482c346c95dac4fb grub-0.97.tar.gz" | \
sha1sum -c
# GRUB 2 1.93
# ===========
# If you're upgrading from GRUB Legacy to GRUB 2, skip down to the bottom
# first to uninstall the older version first.
# FYI, the last time I tried this, I got as far as running grub-install,
# which had an incorrect path, then I fixed it and something else didn't
# work, and I gave up. I am certainly in no dire need to install GRUB 2.
# When I have more time, I'll document what happens.
cd
test -f installed/grub-1.93.tar.gz && mv installed/grub-1.93.tar.gz .
test ! -f grub-1.93.tar.gz &&
wget ftp://alpha.gnu.org/gnu/grub/grub-1.93.tar.gz
# Verify tarball w/ md5sum:
# (this came from my gpg-verified tarball)
echo "c0485d0ac16b3921483bb9df1ce8baf2 grub-1.93.tar.gz" | md5sum -c
# Verify tarball w/ sha1sum:
# (this also came from my gpg-verified tarball)
echo "2afb92d49479574f84426fb91fe6e50546d2d711 grub-1.93.tar.gz" | \
sha1sum -c
# If you ever want to uninstall GRUB Legacy, this should do it:
cd
su
test -d src/grub-0.* && ( cd src/grub-0.* ; make uninstall )
test -d /boot/grub && rm -r /boot/grub
rm -f /usr/bin/mbchk /usr/info/grub.info /usr/man/man1/mbchk.1
test -d /usr/lib/grub && rm -r /usr/lib/grub
( cd /usr/man/man8 ; rm -f grub.8 grub-install.8 grub-md5-crypt.8 \
grub-terminfo.8 )
( cd /usr/sbin ; rm -f grub grub-install grub-md5-crypt grub-set-default \
grub-terminfo )
exit
find ~/src -maxdepth 1 -type d -name "grub-0.*" -exec rm -r {} \;
rm -f ~/installed/grub-0.*.tar.*
# If you ever want to uninstall GRUB 2, this should do it:
cd
su
test -d src/grub-* && ( cd src/grub-* ; make uninstall )
test -d /boot/grub && rm -r /boot/grub
rm -f /usr/bin/grub-mkimage
( cd /usr/sbin ; rm -f grub-emu grub-install grub-mkdevicemap \
grub-probefs grub-setup )
test -d /usr/share/grub && rm -r /usr/share/grub
exit
find ~/src -maxdepth 1 -type d -name "grub-*" -exec rm -r {} \;
rm -f ~/installed/grub-*.tar.*