Skip to content

Instantly share code, notes, and snippets.

@bjcubsfan
Created March 10, 2015 16:03
Show Gist options
  • Select an option

  • Save bjcubsfan/cd975cf547cc0e6881f1 to your computer and use it in GitHub Desktop.

Select an option

Save bjcubsfan/cd975cf547cc0e6881f1 to your computer and use it in GitHub Desktop.

Revisions

  1. bjcubsfan created this gist Mar 10, 2015.
    25 changes: 25 additions & 0 deletions upgrade-arch
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    #!/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