Create a list of packages from your Debian:
To create a txt file:
To reinstall the packages from the txt file:
To print a list:
To create a txt file:
Code:
dpkg --get-selections '*' > /tmp/selections.txt
To reinstall the packages from the txt file:
Code:
awk '$2=="hold" || $2 == "install" {print $1}' /tmp/selections.txt |
xargs -r apt-get -d -y reinstall
To print a list:
Code:
dpkg -l | awk '/^ii/ { print $2 ;}'