Cheat Sheets

Packages - Inventory

Description

Inventory only scanner for 3rd party repos

Check Script: packages-inventory.sh

#!/bin/bash

PACKAGES_INVENTORY_3RD_PARTY_REPOS_WHITELIST=${PACKAGES_INVENTORY_3RD_PARTY_REPOS_WHITELIST-nowhitelistconfigured}

result_inventory "3rd Party Repos" $(egrep -hv "^#|debian.org|aptrepo" /etc/apt/sources.list /etc/apt/sources.list.d/* | sed 's/.*htt[ps]*:\/\///;s/[ \/].*//;s/^deb\.//;s/^packages\.//' | sort -u)
Comment on Disqus