-
-
Save jhaubrich/966f6c0d95aa16c33ee9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
print -n "Does the new linux and zfs-git use the same kernel verision? | |
https://www.archlinux.org/packages/core/x86_64/linux/ | |
https://aur.archlinux.org/packages/zfs-git/ | |
" | |
read -q REPLY | |
if [[ $REPLY == "y" ]] ; then | |
set -x | |
TODAY=$(date --iso-8601) | |
sudo etckeeper pre-install | |
gvim /home/bpotter/notes/arch_upgrades/${TODAY}_arch_upgrade.md& | |
sudo pacman -Rs zfs-git spl-git zfs-utils-git | |
yaourt -Syua | |
yaourt -Sa zfs-git spl-git zfs-utils-git | |
# Clean out anything but last 3 from cache | |
sudo paccache -r | |
sudo pacman -Qqe > /etc/pacman.d/bjp_installed_pkglist.txt | |
sudo etckeeper post-install | |
else | |
echo " | |
Wait until they match, then upgrade." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment