, 1 min read
Updating AUR Package
I use Arch Linux for my machines. There are essentially two types of packages in Arch Linux:
- Official ones, in repositories Core, Extra, Multilib, Community, and some other
- User provided, in repository AUR (Arch User Repository)
For updating an AUR package I use trizen. But this post is about maintaining an AUR package.
Here I will collect the commands required to update the PKGBUILD
, when you maintain an AUR package.
Let's take makedepend as an example. First you check-out the Git repository in read-write mode.
git clone ssh://aur@aur.archlinux.org/makedepend.git
Edit the PKGBUILD
file. Then run
updpkgsums
to update the checksums in PKGBUILD
. This will automatically download the required software from the internet.
Then update the .SRCINFO
file like this:
makepkg --printsrcinfo > .SRCINFO
Build the package with makepkg
time makepkg
Check the package by installing it with pacman
:
pacman -U /var/cache/aur/makedepend-1.0.7-1-x86_64.pkg.tar.zst
Run the corresponding commands, to see whether everything is as expected. Then check-in to Git:
git status
git diff
git commit -m"Updated to version 1.7.0"
git push