You are not logged in.

#1 2013-11-26 11:02:36

TheOldFellow
Member
From: Cumbria, England, UK
Registered: 2011-01-14
Posts: 28
Website

Detecting changes in the AUR

How do people find out that they need to rebuild something from the AUR?  Is there anything other than having a list and checking everything on it once in a while?
TOF.

Offline

#2 2013-11-26 11:07:42

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

Re: Detecting changes in the AUR

Cower is great. See my bb alias in my .zshrc linked below.

Last edited by graysky (2013-11-26 11:08:31)

Offline

#3 2013-11-26 11:08:29

mzneverdies
Member
Registered: 2012-02-04
Posts: 147

Re: Detecting changes in the AUR

Through is not recommended, I find myself quite happy with yaourt.

alias yupgrade='yaourt --noconfirm -Syuu --aur && yaourt -Qmc'

Calling yupgrade checks for rep packages, aur, and lists aur installed packages.

Disclaimer: use yaourt and the --noconfirm flag at your own risk!

Offline

#4 2013-11-26 11:40:57

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

Re: Detecting changes in the AUR

graysky wrote:

Cower is great. See my bb alias in my .zshrc linked below.

This. And as for VCS packages, I have the sources all in a directory and then run makepkg for all of them. If new commits are available, the package is rebuilt and then I install it. I dislike doing this with yaourt or some other helper since that simply rebuilds and reinstalls all VCS packages and I only want to do taht for the changed ones.

Last edited by progandy (2013-11-26 11:46:19)


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

Offline

#5 2013-11-26 12:10:46

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: Detecting changes in the AUR

personally i prefer the manual method :

For every aur package i use or am interested in, i login to the aur, and select 'Notify of new comments' .
The majority of aur maintainers add a comment when they submit a new version.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#6 2013-11-26 13:29:42

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Detecting changes in the AUR

TheOldFellow wrote:

How do people find out that they need to rebuild something from the AUR?  Is there anything other than having a list and checking everything on it once in a while?

An AUR Helper is an application that can tell you which of your AUR packages have updates available and / or help you install them.

"cower" and "yaourt" are AUR Helpers, but there's dozens of others. You can go through the list in the wiki and decide if one has the features that fit your needs. smile

Offline

#7 2013-11-26 13:59:49

effae
Member
Registered: 2013-05-07
Posts: 39

Re: Detecting changes in the AUR

I've used pacaur for a while now, and it seems to work rather well! Worth checking out..

Offline

#8 2013-11-26 14:36:13

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Detecting changes in the AUR

Many -git -hg etc. packages won't give any notifications, because their PKGBUILDs haven't changed, but their source might, so you have to check it manually.

Offline

#9 2013-11-26 14:48:31

Spyhawk
Member
Registered: 2006-07-07
Posts: 485

Re: Detecting changes in the AUR

karol wrote:

Many -git -hg etc. packages won't give any notifications, because their PKGBUILDs haven't changed, but their source might, so you have to check it manually.

Not sure about the others, but pacaur with the --devel flag fetches the vcs sources and compiles only if the version of the cloned repo is newer than the installed packages.

Last edited by Spyhawk (2013-11-26 14:50:39)

Offline

#10 2013-11-26 14:49:07

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,954
Website

Re: Detecting changes in the AUR

Lone_Wolf wrote:

personally i prefer the manual method :
For every aur package i use or am interested in, i login to the aur, and select 'Notify of new comments' .
The majority of aur maintainers add a comment when they submit a new version.

Is that a recommendation? Because I never do that with my packages. Sorry for hijacking the thread.


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#11 2013-11-26 14:54:40

aesiris
Member
Registered: 2012-02-25
Posts: 97

Re: Detecting changes in the AUR

I use the JSON interface (see at https://aur.archlinux.org/rpc.php) through a bash script which uses jshon for parsing.

If you use type=multiinfo it is unexpectedly fast: you can get info about tens of packages in just a few seconds.

For example you can get all the info about cower and yaourt with this line:

$ wget "https://aur.archlinux.org/rpc.php?type=multiinfo&arg[]=cower&arg[]=yaourt" -o /dev/null -O - | jshon -e results
[
 {
  "Maintainer": "falconindy",
  "ID": 44921,
  "Name": "cower",
  "Version": "10-2",
  "CategoryID": 16,
  "Description": "A simple AUR agent with a pretentious name",
  "URL": "http:\/\/github.com\/falconindy\/cower",
  "License": "MIT",
  "NumVotes": 399,
  "OutOfDate": 0,
  "FirstSubmitted": 1293676237,
  "LastModified": 1381588117,
  "URLPath": "\/packages\/co\/cower\/cower.tar.gz"
 },
 {
  "Maintainer": "tuxce",
  "ID": 5863,
  "Name": "yaourt",
  "Version": "1.3-1",
  "CategoryID": 16,
  "Description": "A pacman wrapper with extended features and AUR support",
  "URL": "http:\/\/www.archlinux.fr\/yaourt-en\/",
  "License": "GPL",
  "NumVotes": 5754,
  "OutOfDate": 0,
  "FirstSubmitted": 1152045478,
  "LastModified": 1365197530,
  "URLPath": "\/packages\/ya\/yaourt\/yaourt.tar.gz"
 }
]

To see if there are news your could use vercmp and compare the version to that of package installed on your system. Alternatively you can store the timestamps on a local database and compare that.

Offline

#12 2013-11-26 14:55:40

Spyhawk
Member
Registered: 2006-07-07
Posts: 485

Re: Detecting changes in the AUR

SanskritFritz wrote:

Is that a recommendation? Because I never do that with my packages. Sorry for hijacking the thread.

It is not. Subscribing to new messages is a poor way to stay up to date imho.

Offline

#13 2013-11-26 15:01:51

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Detecting changes in the AUR

Spyhawk wrote:
SanskritFritz wrote:

Is that a recommendation? Because I never do that with my packages. Sorry for hijacking the thread.

It is not. Subscribing to new messages is a poor way to stay up to date imho.

I subscribe to get new comments about any issues, delays, packages being removed from the AUR etc.
I don't mind if the maintainer updates the package and doesn't post a comment.

Offline

#14 2013-11-26 15:38:12

Spyhawk
Member
Registered: 2006-07-07
Posts: 485

Re: Detecting changes in the AUR

karol> I was referring only to "new version" notifications. Subscribing to comments is indeed very useful to know about all the cases you mentioned.

I also prefer when maintainers don't announce new version in the comments feed - I want to know about situations that might require particular attention, but don't want to get spammed by version changes that I can easily check by automation.

Offline

#15 2013-11-26 17:58:12

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: Detecting changes in the AUR

Most of the packages I have from aur are VCS packages, so I just use common sense and makepkg -si whenever I feel like it.

For the more important packages I follow upstream ml/rss/whatever too.

Last edited by Mr.Elendig (2013-11-26 17:58:55)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#16 2013-11-26 22:43:54

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,551

Re: Detecting changes in the AUR

There is no requirement to stay updated with Arch, but if you have to update, and you've been in the stone age since the last update cycle, it will be more impossible. 
pacaur --devel seems to want to update everything.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#17 2013-11-26 23:05:17

Spyhawk
Member
Registered: 2006-07-07
Posts: 485

Re: Detecting changes in the AUR

nomorewindows wrote:

pacaur --devel seems to want to update everything.

VCS packages will be checked (cloned locally), but compiled only if required.

Offline

#18 2013-11-26 23:42:35

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,551

Re: Detecting changes in the AUR

Spyhawk wrote:
nomorewindows wrote:

pacaur --devel seems to want to update everything.

VCS packages will be checked (cloned locally), but compiled only if required.

I just update when cower -u says somethings new which is often enough for me, although I could recompile everytime one line is changed in git.  Pacaur wants to call everything -git to -git-latest.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#19 2013-11-27 03:14:01

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Detecting changes in the AUR

I have a script which checks for changes in official and unofficial repos with pacman, and uses cower to check for updates. If there are any, it displays a notification saying so.

There are 2 problems:
1) VCS packages - I have no good way to deal with these;
2) packages which are replaced or dropped altogether from AUR.

Would really like a way to add some sort of checks for these but have not yet come across anything hopeful sad.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#20 2013-11-27 07:52:53

Spyhawk
Member
Registered: 2006-07-07
Posts: 485

Re: Detecting changes in the AUR

nomorewindows wrote:

Pacaur wants to call everything -git to -git-latest.

Yeah, -latest version. Which means they won't be compiled if already to latest version.

man pacaur wrote:

--devel

When used with update operations, also upgrade AUR development packages (supported are cvs, svn, git, hg, bzr and darcs development packages). The build of development packages that are found up-to-date after the source checkout will be skipped.

There's a reason the cloning is done after the main prompt: to minimize time the user spend interacting with the package manager.


cfr wrote:

I have a script which checks for changes in official and unofficial repos with pacman, and uses cower to check for updates. If there are any, it displays a notification saying so.

There are 2 problems:
1) VCS packages - I have no good way to deal with these;
2) packages which are replaced or dropped altogether from AUR.

Would really like a way to add some sort of checks for these but have not yet come across anything hopeful sad.

You might want to look at pacaur source code: 1/ is achieved like explained right above, 2/ is done by displaying a warning when foreign packages aren't found in the AUR either.

Last edited by Spyhawk (2013-11-27 07:56:22)

Offline

#21 2013-11-27 09:34:03

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

Re: Detecting changes in the AUR

cfr wrote:

2) packages which are replaced or dropped altogether from AUR.

This is my alias to detect packages which are neither in a repository nor in the AUR. If you want to detect when a package is dropped from a repository to the AUR, you'll have to keep a list of foreign packages and compare it to the new one.

alias pacdrop='for pkg in `pacman -Qqm`; do; curl --output /dev/null --sile
nt --head --fail "https://aur.archlinux.org/packages/${pkg:0:2}/$pkg/PKGBUI
LD" || echo "$pkg has been dropped from repos and AUR or is a personal package"; done'

Last edited by progandy (2013-11-27 09:40:42)


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

Offline

#22 2013-11-28 02:49:52

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Detecting changes in the AUR

Thanks. That gives me an idea - I might do something with cower to pick up dropped packages. (Only because that is more the kind of thing I would do than using curl.)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB