Skip to main content Logo (IEC resistor symbol) logo

Quis custodiet ipsos custodes?
Home | About | All pages | RSS Feed | Gopher

Arch Linux AUR PKGBUILD generate new checksums

Published: 29-12-2014 | Author: Remy van Elst | Text only version of this article

Table of Contents

The AUR is a nice feature from Arch Linux, it allows anyone to create and upload a simple package build script, PKGBUILD, for a piece of software which is not in the repositories. Sometimes however, the PKGBUILD is outdated. You then need to manually fix it, by changing the download link or version. With a new version you get new checksums, and the makepkg command has a neat feature which generates the checksums for you.

If you like this article, consider sponsoring me by trying out a Digital Ocean VPS. With this link you'll get $100 credit for 60 days). (referral link)

After you have updated your PKGBUILD you can get new checksums with the following command:

makepkg -g -f -p PKGBUILD

Where PKGBUILD is the actual PKGBUILD file with incorrect md5sums.

Output, for newrelic-php5 in this example:

==> Retrieving sources...
  -> Found newrelic-php5-
  -> Found newrelic-daemon.service
  -> Found .install
==> Generating checksums for source files...

Update the PKGBUILD file with the new checksums and you are ready to try a new build.

Tags: arch , aur , compile , makepkg , newrelic , snippets