Remove all installed application from ubuntu

for f in "$(grep 'apt-get install' /var/log/apt/history.log)"; do sudo apt-get remove ${f//Commandline: apt-get install /}; done && sudo apt-get autoremove

this command will remove all installed application which is install with apt-get install

Post a Comment

Previous Post Next Post