apt uninstall package code example

Example 1: ubuntu apt uninstall

sudo apt-get remove <application_name>

Example 2: ubuntu remove package and dependencies install deb

#For Ubuntu the correct method to remove packages through the console is:
apt-get –-purge remove skypeforlinux.
dpkg –-remove skypeforlinux.
dpkg –r packagename.deb.
apt-get clean && apt-get autoremove. sudo apt-get -f install. ...
#apt-get update. #dpkg –-configure -a. ...
apt-get -u dist-upgrade.
apt-get remove –dry-run packagename.

Example 3: apt-get uninstall

sudo apt-get --purge autoremove pkg

Example 4: apt uninstall

sudo apt-get remove [pkg]

Example 5: sudo apt uninstall

sudo apt-get remove pkg