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

Re: Recurse depends from archive snapshot


Quoting Dave Schile (2019-10-09 00:56:07)
> I'm looking to start on a project that has a subroutine/function that will
> return a list of all transitive dependencies of a given deb package listed in
> a given archive snapshot from https://snapshot.debian.org/ I would really
> like to leverage dpkg or libdpkg.  I don't have much experience with this
> sort of development so I'm here asking for any insight or tips on how to get
> started.  Perhaps you know of a project that already does this.

     dose-ceve --deb-native-arch amd64 -c patchutils -T deb \
             deb:///var/lib/apt/lists/*_dists_sid_main_binary-amd64_Packages \
             | grep-dctrl -n -s Package '' | sort -u

I would strongly advice you do not re-implement this kind of functionality
yourself if you value your time. It is quite complicated and thus prone to
errors. For example consider complex concepts like versioned provides,
multiarch, architecture wildcard matching and version constraints.

cheers, josch

Attachment: signature.asc
Description: signature

Reply to: