You are not logged in.

#1 2015-01-09 19:54:50

nbd
Member
Registered: 2014-08-04
Posts: 389

[SOLVED]Is there a way to automatically upgrade AUR packages?

I have several AUR packages which I don't upgrade manually with every kernel upgrade. But two of those several AUR packages prevent the 'pacman -Syu' system upgrade when the kernel is upgraded: pacman gives the message that installed packages 'zfs-git' and 'spl-git' (names of those two packages) require the older version of kernel and doesn't proceed. I then do the following:

- remove those two packages and also all packages that depend on them;
- do the system upgrade with 'pacman -Syu';
- download new versions of removed packages from AUR;
- make the new AUR packages one by one (with long compilation) and install them.

The whole process takes about an hour or so (compiling AUR packages takes most of the time). And this process is done everytime when new version of kernel is released (every month?).

Is upgrading of AUR packages meant to be done in this way? Isn't there some utility with which upgrading of AUR packages can be automated?

Thanks.

Last edited by nbd (2015-01-10 15:34:47)


bing different

Offline

#2 2015-01-09 19:58:44

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

Re: [SOLVED]Is there a way to automatically upgrade AUR packages?

Not to my knowledge.  In the case of zfs you may use demz's repo. https://wiki.archlinux.org/index.php/Un … -repo-core

Offline

#3 2015-01-09 20:07:34

progandy
Member
Registered: 2012-05-17
Posts: 5,307

Re: [SOLVED]Is there a way to automatically upgrade AUR packages?

I propose you set up a chroot where you can build those packages before you upgrade your system. Then add them in a local repository and to the upgrade. You could automate the following steps:

- upgrade chroot (where no AUR packages are installed)
- build AUR packages in chroot
- push built packages in local AUR repository
- upgarde main system (with local AUR repo)

Edit: For kernel modules you might want to try to use dkms without binding the package to a specific kernel version. If you need zfs for the boot process it might backfire, though.

Last edited by progandy (2015-01-09 20:11:08)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#4 2015-01-09 20:14:28

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: [SOLVED]Is there a way to automatically upgrade AUR packages?

graysky

thanks. Seems like a solution for my case.

progandy

if there will be other kernel-version-dependent packages, I think I'll try your solution. Thanks.


bing different

Offline

#5 2015-01-09 22:11:59

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [SOLVED]Is there a way to automatically upgrade AUR packages?

yaourt (avaible in the AUR) does that.

Offline

#6 2015-01-09 23:48:54

progandy
Member
Registered: 2012-05-17
Posts: 5,307

Re: [SOLVED]Is there a way to automatically upgrade AUR packages?

Since pacman 4.2, there is another solution for this with the --assume-installed option.
You could use it like this:
Perform a normal upgrade
* If you get a version conflict, look for updates for the conflicting AUR packages.
. . - If you find a new version, perform the normal upgrade with --asume-installed
. . - Then upgrade the AUR packages
* Otherwise abort the upgrade and wait for new versions for the AUR packages.

Last edited by progandy (2015-01-09 23:49:19)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#7 2015-01-10 10:32:23

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: [SOLVED]Is there a way to automatically upgrade AUR packages?

olive wrote:

yaourt (avaible in the AUR) does that.

Seems like the tool I was asking about. Thanks!

progandy

thanks for the hint about --assume-installed option.


bing different

Offline

#8 2015-01-10 14:27:25

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [SOLVED]Is there a way to automatically upgrade AUR packages?

There are many tools which can do this, here's a list: AUR helpers.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#9 2015-01-10 15:56:00

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: [SOLVED]Is there a way to automatically upgrade AUR packages?

fsckd,

very useful link. Thanks.


bing different

Offline

Board footer

Powered by FluxBB