CentOS: Check package installation source

This adds `dnf list installed` command so that we can review from
which repository a specific package is installed.

Change-Id: I94b032aae6734282ebf7158e9a1ae61830fd667a
This commit is contained in:
Takashi Kajinami 2023-10-03 15:59:20 +09:00
parent 22166dd044
commit 9d4ed82fe6
1 changed files with 1 additions and 0 deletions

View File

@ -300,6 +300,7 @@ fi
if [ `command -v rpm` ]; then
rpm -qa |sort > $LOG_DIR/rpm-qa.txt
sudo $YUM repolist -v > $LOG_DIR/repolist.txt
sudo $YUM list installed > $LOG_DIR/installed-packages.txt
sudo cp -r /etc/yum.repos.d $LOG_DIR/etc/yum.repos.d
fi
if [ `command -v dnf` ]; then