You can use the autoremove command to completely remove a package or an application in Ubuntu.
sudo apt-get --purge autoremove packagename
The above command will remove the specified package along with the dependencies that are installed with that package as well the associated configuration files.
For example, to remove "fail2ban" package along with the dependencies, you can run:
sudo apt-get --purge autoremove fail2ban
However, if you simply want to remove the package without removing the dependencies and configuration files you can use the following command:
Use the
autoremove
CommandYou can use the
autoremove
command to completely remove a package or an application in Ubuntu.The above command will remove the specified package along with the dependencies that are installed with that package as well the associated configuration files.
For example, to remove "fail2ban" package along with the dependencies, you can run:
However, if you simply want to remove the package without removing the dependencies and configuration files you can use the following command: