tech-pkg archive

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

Re: up2date - something for NetBSD?



> Can pkg_summary or something else tell you what's available in the
> source repository?

If you need pkg_summary for pkgsrc source packages look at
wip/pkg_summary-utils. There you'll find a set of very powerful scripts
for generating and manipulating summary files.
All programs have man pages. README with examples is also available.

Main utilities for you are probably pkg_src_summary, pkg_cmp_summary and
probably pkg_micro_src_summary.

As an example you can also look at wip/pkgpm. This code is incomplete
but can be seen as a example of how to use pkg_summary-utils.  Currently
it shows different kind of differences, e.g. between installed and
available source packages (pkgpm -cis --- Compare Installed and Source
tree, replacement for lintpkgsrc -i). Its code is very small and
simple. Everything is built on top of pkg_summary-utils.

The following lists is incomplete is not complete

pkg_list_all_pkgs      - list (in PKGPATH form) all packages in pkgsrc tree
pkg_src_summary        - create a full pkg_src_summary
                         for given (in PKGPATH form) packages
pkg_micro_src_summary  - create a micro pkg_src_summary
                         for given (in PKGPATH form) packages
pkg_cmp_summary        - compare two summary files, i.e. packages
                         are compared by their versions
pkg_update_summary     - updates pkg_summary(5) by analysing the modification
                         time of binary packages and pkg_summary(5) file
pkg_update_src_summary - efficiently updates pkg_src_summary for all
                         packages in pkgsrc tree
pkg_summary4view       - convert a summary file to human readable form
pkg_refresh_summary    - output an information about latest/newest version
                         of packages
pkg_grep_summary       - grep the summary using AWK expression

-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index