[aur-general] Method to get all Packages
Hey! I'm currently writing a GUI-Frontend for AUR integrated into Shaman (Qt-Alpm- Frontend)... Some people already pointed me to: http://aur.archlinux.org/rpc.php which seems to be quite cool in combination with QtJson... So now as far as I can see the only thing missing is a method to get the names of _all_ Packages... I tried to parse the Apache output of aur.archlinux.org/packages/ but that might not be a good idea, since the layout can change... So, I would like to ask if there is any method to get all package names or if that is planned? Lukas
On 2009-01-14 15:07:38, Lukas Appelhans wrote:
From: Lukas Appelhans <l.appelhans@gmx.de> Subject: [aur-general] Method to get all Packages To: aur-general@archlinux.org Reply-To: "Discussion about the Arch User Repository (AUR)" <aur-general@archlinux.org> Date: Wed, 14 Jan 2009 15:07:38 +0100 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <200901141507.38301.l.appelhans@gmx.de> List-Id: "Discussion about the Arch User Repository \(AUR\)" <aur-general.archlinux.org>
Hey! I'm currently writing a GUI-Frontend for AUR integrated into Shaman (Qt-Alpm- Frontend)... Some people already pointed me to: http://aur.archlinux.org/rpc.php which seems to be quite cool in combination with QtJson...
So now as far as I can see the only thing missing is a method to get the names of _all_ Packages... I tried to parse the Apache output of aur.archlinux.org/packages/ but that might not be a good idea, since the layout can change...
So, I would like to ask if there is any method to get all package names or if that is planned?
Lukas
Try this: tar -tf $repo.db.tar.gz you will find all you wanted. In fact, I have written a perl scripts to do those works and download packages that dose not in my local disk( I sync with a source who can't provide rsync. )
On Mittwoch 14 Januar 2009 14:32:25 goodmenzy@gmail.com wrote:
On 2009-01-14 15:07:38, Lukas Appelhans wrote:
From: Lukas Appelhans <l.appelhans@gmx.de> Subject: [aur-general] Method to get all Packages To: aur-general@archlinux.org Reply-To: "Discussion about the Arch User Repository (AUR)" <aur-general@archlinux.org> Date: Wed, 14 Jan 2009 15:07:38 +0100 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <200901141507.38301.l.appelhans@gmx.de> List-Id: "Discussion about the Arch User Repository \(AUR\)" <aur-general.archlinux.org>
Hey! I'm currently writing a GUI-Frontend for AUR integrated into Shaman (Qt-Alpm- Frontend)... Some people already pointed me to: http://aur.archlinux.org/rpc.php which seems to be quite cool in combination with QtJson...
So now as far as I can see the only thing missing is a method to get the names of _all_ Packages... I tried to parse the Apache output of aur.archlinux.org/packages/ but that might not be a good idea, since the layout can change...
So, I would like to ask if there is any method to get all package names or if that is planned?
Lukas
Try this:
tar -tf $repo.db.tar.gz
you will find all you wanted.
In fact, I have written a perl scripts to do those works and download packages that dose not in my local disk( I sync with a source who can't provide rsync. )
Well is there a database-file for aur? Lukas
On 2009-01-14 15:07:38, Lukas Appelhans wrote:
So, I would like to ask if there is any method to get all package names or if that is planned?
The only method is via the web interface. There aren't any plans to make that possible via the json interface. If you're interested in implementing that please send ideas/patches to aur-dev@archlinux.org
Well is there a database-file for aur?
Nope. That's an interesting idea though.
On 2009-01-14 15:07:38, Lukas Appelhans wrote:
So, I would like to ask if there is any method to get all package names or if that is planned?
The only method is via the web interface. There aren't any plans to make that possible via the json interface. If you're interested in implementing that please send ideas/patches to aur-dev@archlinux.org Ok, any suggestions where in code to implement it? (I honestly have no clue about web-development at all :/)... Actually I read some code here and now I'm lost with: http://projects.archlinux.org/?p=aur.git;a=blob;f=web/lib/aurjson.class.php;...
On Mittwoch 14 Januar 2009 19:07:54 Loui Chang wrote: line 47, where is that implemented? Lukas
Well is there a database-file for aur?
Nope. That's an interesting idea though.
On 2009-01-14 15:07:38, Lukas Appelhans wrote:
So, I would like to ask if there is any method to get all package names or if that is planned?
The only method is via the web interface. There aren't any plans to make that possible via the json interface. If you're interested in implementing that please send ideas/patches to aur-dev@archlinux.org
Well is there a database-file for aur?
Nope. That's an interesting idea though. Actually since I didn't get any further, is there probably a way to publish
On Mittwoch 14 Januar 2009 19:07:54 Loui Chang wrote: the dir listed by apache when calling (aur.archlinux.org/packages/) on the ftp-server? Lukas
On Thu, Jan 22, 2009 at 03:29:19PM +0100, Lukas Appelhans wrote:
On Mittwoch 14 Januar 2009 19:07:54 Loui Chang wrote:
On 2009-01-14 15:07:38, Lukas Appelhans wrote:
So, I would like to ask if there is any method to get all package names or if that is planned?
The only method is via the web interface. There aren't any plans to make that possible via the json interface. If you're interested in implementing that please send ideas/patches to aur-dev@archlinux.org
Well is there a database-file for aur?
Nope. That's an interesting idea though.
Actually since I didn't get any further, is there probably a way to publish the dir listed by apache when calling (aur.archlinux.org/packages/) on the ftp-server?
Of course there's a way. You really should be accessing the AUR via the web or json interface though. That dir listing doesn't actually reflect the status of the AUR. Old scripts are only occaisionally removed from that. That may change soon though.
On Freitag 23 Januar 2009 05:54:21 Loui Chang wrote:
On Thu, Jan 22, 2009 at 03:29:19PM +0100, Lukas Appelhans wrote:
On Mittwoch 14 Januar 2009 19:07:54 Loui Chang wrote:
On 2009-01-14 15:07:38, Lukas Appelhans wrote:
So, I would like to ask if there is any method to get all package names or if that is planned?
The only method is via the web interface. There aren't any plans to make that possible via the json interface. If you're interested in implementing that please send ideas/patches to aur-dev@archlinux.org
Well is there a database-file for aur?
Nope. That's an interesting idea though.
Actually since I didn't get any further, is there probably a way to publish the dir listed by apache when calling (aur.archlinux.org/packages/) on the ftp-server?
Of course there's a way. You really should be accessing the AUR via the web or json interface though. That dir listing doesn't actually reflect the status of the AUR. Old scripts are only occaisionally removed from that. That may change soon though. Okok :) I worked on a patch for that, it's attached... I have no clue if it works (or if everything is alright) though, never worked with Sql-Queries :(
Lukas
participants (3)
-
goodmenzy@gmail.com
-
Loui Chang
-
Lukas Appelhans