Ubuntu: Capture /etc/apt

... to review repository settings.

Change-Id: I96306b48c130503e1db32bff0036dc429a6bdb9f
This commit is contained in:
Takashi Kajinami 2022-06-08 16:44:54 +09:00
parent de83aea30c
commit e7d8263b27

View File

@ -242,11 +242,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
@ -259,10 +263,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