Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # https://gitlab.com/sc0ttj/Pkg/merge_requests/21#note_262770355
- # /etc/apt/sources.list should have the following line (non-free & contrib are optional)
- #deb http://ftp.de.debian.org/debian buster main non-free contrib
- UPDATE_REPO=yes
- . /etc/DISTRO_SPECS
- #Chose a repo file to filter
- REPO_DB_DOC_FILE=~/Packages-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION}-main
- AWK_PRG=\
- 'BEGIN {FS="|"; OFS="|"}
- { if ($1 ~ /^[^|]+:[^|]+$/ ){
- print $1
- }}'
- if [ "$UPDATE_REPO" = "yes" ]; then
- export PKG_KEEP_EPOCH_IN_DOC_REPO=true
- pkg --repo-update
- fi
- cat $REPO_DB_DOC_FILE | awk "$AWK_PRG" #| tr "\n" " "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement