Merge "Ubuntu: Capture /etc/apt"

This commit is contained in:
Zuul 2022-06-28 14:45:01 +00:00 committed by Gerrit Code Review
commit a8b73a8ff2

View File

@ -249,11 +249,15 @@ fi
# package status and repository list
if [ `command -v dpkg` ]; then
dpkg -l> $LOG_DIR/dpkg-l.txt
fi
if [ `command -v apt` ]; then
apt-cache policy > $LOG_DIR/apt-cache-policy.txt
sudo cp -r /etc/apt $LOG_DIR/etc/apt
fi
if [ `command -v rpm` ]; then
rpm -qa |sort > $LOG_DIR/rpm-qa.txt
sudo $YUM repolist -v > $LOG_DIR/repolist.txt
sudo cp -r /etc/yum.repos.d $LOG_DIR/etc/yum.repos.d
fi
if [ `command -v dnf` ]; then
sudo dnf module list > $LOG_DIR/modulelist.txt
@ -266,10 +270,6 @@ if [ `command -v gem` ]; then
gem list |sort > $LOG_DIR/gem-list.txt
fi
if is_fedora; then
sudo cp -r /etc/yum.repos.d $LOG_DIR/etc/yum.repos.d
fi
# system status & informations
sudo cp /root/openrc $LOG_DIR/openrc.txt
sudo chmod 777 $LOG_DIR/openrc.txt