You are not logged in.

#1 2015-10-28 01:32:30

hardly
Member
Registered: 2009-05-07
Posts: 15

Auto update zfs-git from aur

I became frustrated with having to manually remove the zfs related *-utils-git and *-git packages so I wrote this little script. Not sure if anyone might find it useful but I was pleased with not having to re-perform the task and wanted to share.

I cd into ~/aur/zfs/ then run update.zfs.build.sh which looks like this:

#removes zfs and friends
sudo pacman -R zfs-git zfs-utils-git spl-git spl-utils-git
#updates system
sudo pacman -Syu
#cleans build dir
rm -fr spl* zfs*
#download, extract, build, install each of the packages which were removed in step 1
for i in spl-utils-git spl-git zfs-utils-git zfs-git 
	do wget https://aur.archlinux.org/cgit/aur.git/snapshot/$i.tar.gz
	tar xvfz $i.tar.gz 
	cd $i
	makepkg -i #does require pressing enter to select the Y option
	cd ..
    done

If there is an existing popular solution for this that I obviously haven't researched, I'd be happy to hear about it.
[edit]
Just found this section of the wiki page. Mine is "simpler" lol
https://wiki.archlinux.org/index.php/ZF … ild_script

Last edited by hardly (2015-10-28 01:54:57)

Offline

#2 2015-10-28 01:38:56

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Auto update zfs-git from aur

Moving to AUR Issues...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB