Fetch and search news from Debian Package Tracker. (https://tracker.debian.org)
pipx install git+https://github.com/pablos123/dptn.git
Requires Python >=3.8.
Fetch the news for nginx package.
dptn -f openssl nginx
Search "deb10" string for openssl package.
dptn -s deb10 openssl
Search "deb10" and "2019" strings for openssl and nginx packages.
dptn -s deb10 -s 2019 nginx openssl
Fetch packages before search.
dptn -f -s deb10 -s 2019 nginx openssl
Print all news for openssl package but do it without escaped sequences.
dptn --no-color openssl
Help.
dptn -h
If you want to do another kind of operation you can work with the news files directly. The files are located in ~/.dptn/
after fetching the news.
There are two files per package:
<package_name>
<package_name>.json
Each line in the first file is a news for the package and each news is in the form:
<date>;;<title>;;url
The .json
file is a list of hashes, each hash is a news.
or
operation using rg
echo && rg --color always --smart-case --no-line-number '2003-10|1.1.1' openssl | sed -z '$ s/\n/\n\n/g' | sed 's/;;/\n/g'
Pipe to jq
then do whatever
cat nginx.json | jq ...