[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: fetching kernel packages



On Wed, Apr 19, 2017 at 11:22 PM, John Floren wrote:

> I don't find anything. I'm probably fundamentally missing something;

The API returns JSON so you need something like jq instead of grep, or
a programming language with native JSON support.

The /mr/package/ API is about source packages not binary packages.

The Linux kernel has had a lot of different package names over the years.

There isn't yet an API to list all binary packages AFAICT.

> can anyone help me figure out how to list/fetch every kernel .deb from
> the repo?

What is your goal here? Just downloading old binary packages doesn't
sound useful.

Due to the naming issue and the missing binary package list API, this
is non-trivial. You will need to get the list of all source packages,
develop some heuristics/globs (something like this linux linux-*
kernel-*) to find the Linux ones, manually filter out the ones that
match but aren't Linux, list all binary packages for each of them,
match those against the desired architecture and download the results.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


Reply to: