Add purge to autoremove so that unused config files also get removed.
This commit is contained in:
@@ -109,7 +109,7 @@
|
|||||||
echo -e "******* Apt *******\n*** Update Cache ***" &&
|
echo -e "******* Apt *******\n*** Update Cache ***" &&
|
||||||
sudo apt update &&
|
sudo apt update &&
|
||||||
echo -e "\n*** Auto Remove ***" &&
|
echo -e "\n*** Auto Remove ***" &&
|
||||||
sudo apt autoremove {{ update_accept_var }} &&
|
sudo apt autoremove --purge {{ update_accept_var }} &&
|
||||||
echo -e "\n*** Clean ***" &&
|
echo -e "\n*** Clean ***" &&
|
||||||
sudo apt clean {{ update_accept_var }} &&
|
sudo apt clean {{ update_accept_var }} &&
|
||||||
echo -e "Cleaned!\n\n*** Configure DPKG ***" &&
|
echo -e "Cleaned!\n\n*** Configure DPKG ***" &&
|
||||||
@@ -124,7 +124,7 @@
|
|||||||
echo -e "******* Parrot *******\n*** Update Cache ***" &&
|
echo -e "******* Parrot *******\n*** Update Cache ***" &&
|
||||||
sudo apt update &&
|
sudo apt update &&
|
||||||
echo -e "\n*** Auto Remove ***" &&
|
echo -e "\n*** Auto Remove ***" &&
|
||||||
sudo apt autoremove {{ update_accept_var }} &&
|
sudo apt autoremove --purge {{ update_accept_var }} &&
|
||||||
parrot_mirrors_suck=true &&
|
parrot_mirrors_suck=true &&
|
||||||
while [[ $parrot_mirrors_suck ]]; do
|
while [[ $parrot_mirrors_suck ]]; do
|
||||||
unset parrot_mirrors_suck
|
unset parrot_mirrors_suck
|
||||||
|
@@ -121,7 +121,7 @@
|
|||||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
||||||
|
|
||||||
- name: Miner | Driver | AMDGPU | Update + Clean System
|
- name: Miner | Driver | AMDGPU | Update + Clean System
|
||||||
shell: "apt update; apt dist-upgrade -y; apt autoremove -y"
|
shell: "apt update; apt dist-upgrade -y; apt autoremove --purge -y"
|
||||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
||||||
|
|
||||||
# This is to ensure we can test adding `apt install --install-recommends linux-generic` later
|
# This is to ensure we can test adding `apt install --install-recommends linux-generic` later
|
||||||
|
Reference in New Issue
Block a user