You are not logged in.

#1 2011-07-17 13:48:54

Camus
Member
Registered: 2011-07-03
Posts: 71

How to get info about updates' repo and versions, including AUR pkgs

I'm writing a little tool in python that checks for updates and displays notification in gnome about available updates. I'm doing this by syncing database to custom directory with:

pacman -Syb /custom/dir

and then getting list of updates with

pacman -Qub /custom/dir

I do it this way because I don't want to sync my real pacman database until I'm actually installing or updating packages. I then get current version and repo of the listed packages with:

yaourt -Q | grep "list\|of\|packages"

It's quite long and seemingly wasteful procedure, but an even bigger issue is that I don't know how to do the same thing with packages from AUR. Looking at the yaourt's man pages I see no option to sync database into a custom directory.

Any suggestions?

Offline

#2 2011-07-17 13:52:09

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: How to get info about updates' repo and versions, including AUR pkgs

I remember this blog post:  http://bashlnx.blogspot.com/2011/05/hey … rt-ii.html .  Looks like it does what you want.

Offline

#3 2011-07-17 14:24:26

Camus
Member
Registered: 2011-07-03
Posts: 71

Re: How to get info about updates' repo and versions, including AUR pkgs

The author of that blog post used cower instead of yaourt, but I don't think cower allows me to sync AUR database into custom dir either. Or am I missing something? I don't how yaourt and cower sync AUR database anyway.

I actually already wrote such notifier for gnome in bash. But I want to display more info and I want to include AUR packages.

The perfect tool in my situation would be something that allows me to sync official and AUR databases into custom dir and then displays list of updates with:
-name of package
-current version
-updated version
-repo

I can currently do all of the above, but just with official repos and not as elegantly as I want.

Offline

#4 2011-07-17 23:25:40

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: How to get info about updates' repo and versions, including AUR pkgs

From Xyne's website, http://xyne.archlinux.ca/old_projects/bauerbill/

That may do what you want.  If not, poke around his site, you may find something there to help you.

Offline

#5 2011-07-18 00:00:36

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: How to get info about updates' repo and versions, including AUR pkgs

Camus wrote:

The author of that blog post used cower instead of yaourt, but I don't think cower allows me to sync AUR database into custom dir either. Or am I missing something? I don't how yaourt and cower sync AUR database anyway.

I actually already wrote such notifier for gnome in bash. But I want to display more info and I want to include AUR packages.

The perfect tool in my situation would be something that allows me to sync official and AUR databases into custom dir and then displays list of updates with:
-name of package
-current version
-updated version
-repo

I can currently do all of the above, but just with official repos and not as elegantly as I want.

Not sure what you mean by 'sync AUR database' (no such thing exists as it does for the binary repos), but cower will let you download to wherever you want.

Offline

#6 2011-07-18 03:23:08

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: How to get info about updates' repo and versions, including AUR pkgs

MoonSwan wrote:

From Xyne's website, http://xyne.archlinux.ca/old_projects/bauerbill/

That may do what you want.  If not, poke around his site, you may find something there to help you.

Its deprecated and does not work.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#7 2011-07-18 16:43:49

Camus
Member
Registered: 2011-07-03
Posts: 71

Re: How to get info about updates' repo and versions, including AUR pkgs

falconindy wrote:

Not sure what you mean by 'sync AUR database' (no such thing exists as it does for the binary repos), but cower will let you download to wherever you want.

I want to do something like Xyne's paconky does, but also with version info, which yaourt does with AUR packages but only when you do "-Syua". I've tried pacpal (another Xyne's tool) with "--display-update-info" flag, but it just shows update-able packages with currently-installed version (identical output to "pacman -Qu").

How do these tools (such as paconky) know from which repos (including AUR) are packages?

Offline

#8 2011-07-19 10:59:39

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

Re: How to get info about updates' repo and versions, including AUR pkgs

You can obtain everything you need and how you need it with cower (aur) and expac (repo), both made in falconindy's land.

Last edited by Spyhawk (2011-07-19 11:00:23)

Offline

Board footer

Powered by FluxBB