Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian Latest Package List

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
metallica1973
Posts: 2
Joined: 2016-02-05 20:05

Debian Latest Package List

#1 Post by metallica1973 »

I am currently working on a project using Python wanted to know if there is a way that I can obtain this same list of the latest packages for Jessie,Wheezy and etc.
https://packages.debian.org/jessie/allp ... mat=txt.gz
that is architecture specific as in i386 or amd64 by itself? When I download the compact compress list, it includes all the architectures together as in:

Code: Select all

389-dsgw (1.1.11-1+b1 [s390x], 1.1.11-1 [amd64, arm64, armel, armhf, i386, mips, mipsel, powerpc, ppc64el]) 389 Directory Server Gateway
3dchess (0.8.1-18) Play chess across 3 boards!
3depict (0.0.16-2.1+b1 [s390x], 0.0.16-2.1 [amd64, arm64, armel, armhf, i386, mips, mipsel, powerpc, ppc64el]) visualisation and analysis for single valued point data
3dldf (2.0.3+dfsg-2) 3D drawing with MetaPost output -- interpreter
I need a list for just i386 or amd64. I know I can do this via the cli of a system that has Debian installed by querying the repos using:

Code: Select all

sudo apt-cache dumpavail| tee Wheezepkgs.out
or query the files locally

Code: Select all

/var/lib/apt/lists
but I would like to simply download this from the site and add it to my code. Is there an API that I can tap into to accomplish this task?
Looks promising but its limited:
https://sources.debian.net/doc/api/
Getting close:
https://sources.debian.net/api/list/?&s ... arch=amd64
but this doesnt include versions and useful info that I can use.

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 13 times
Been thanked: 66 times

Re: Debian Latest Package List

#2 Post by dilberts_left_nut »

Pipe your download through zgrep prior to writing the file.
AdrianTM wrote:There's no hacker in my grandma...

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Debian Latest Package List

#3 Post by kedaha »

Take a look at rmadison. It's in devscripts.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

metallica1973
Posts: 2
Joined: 2016-02-05 20:05

Re: Debian Latest Package List

#4 Post by metallica1973 »

many thanks for all the replies. rmadison is awesome but how can I tell it to list all packages for a suite and an architecture? I tried:

Code: Select all

sudo rmadison * -a amd64 -u debian -s wheezy
and various combinations but cant seem to get it done. Any tricks?

Post Reply