add reinstall apt packages script (#1)

This commit is contained in:
Carlos Sousa 2023-05-31 15:43:06 +02:00 committed by GitHub
parent f10730b911
commit bbc7a5a811
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,6 @@
#!/bin/bash
dpkg --get-selections | grep -w "install" | awk '{print $1}' > ubuntu_packages.txt
while read p; do
echo "::::::::::::::::::: Reinstalling: $p :::::::::::::::::::"
apt reinstall $p
done < ubuntu_packages.txt