diff --git a/facts/general/package.yml b/facts/general/package.yml index bd07628..bcfd018 100644 --- a/facts/general/package.yml +++ b/facts/general/package.yml @@ -95,30 +95,39 @@ case $pkg_mgr in apt) if [[ $distribution != "ParrotOS" ]]; then - echo "*** Apt ***" && + echo -e "******* Apt *******\n*** Update Cache ***" && sudo apt update && + echo -e "\n*** Auto Remove ***" && sudo apt autoremove {{ update_accept_var }} && + echo -e "\n*** Clean ***" && sudo apt clean {{ update_accept_var }} && + echo -e "Cleaned!\n\n*** Configure DPKG ***" && sudo dpkg --configure -a && + echo -e "\n*** Fix Broken/Missing ***" && sudo apt --fix-broken --fix-missing install && + echo -e "\n*** Upgrade ***" && sudo apt dist-upgrade --allow-downgrades --fix-broken \ --fix-missing {{ update_accept_var }} || return 1 else - echo "*** Parrot ***" + echo -e "******* Parrot *******\n*** Update Cache ***" && sudo apt update && + echo -e "\n*** Auto Remove ***" && sudo apt autoremove {{ update_accept_var }} && parrot_mirrors_suck=true && while [[ $parrot_mirrors_suck ]]; do unset parrot_mirrors_suck + echo -e "\n*** Upgrade ***" sudo parrot-upgrade if [[ $? != 0 ]]; then parrot_mirrors_suck=true + echo -e "*** Update Cache, Again ***" sudo apt update --fix-missing fi done || return 1 fi + echo -e "\n******* Mission Complete!! *******" ;; pacman)