mirror of
https://github.com/zebrajr/sysadmin.git
synced 2025-12-06 00:20:23 +01:00
add reinstall apt packages script (#1)
This commit is contained in:
parent
f10730b911
commit
bbc7a5a811
6
linux/apt/reinstall_apt_packages.sh
Executable file
6
linux/apt/reinstall_apt_packages.sh
Executable 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
|
||||||
Loading…
Reference in New Issue
Block a user