remove higher vrsion of a package from ubuntu server code example Example: how to delete a package in ubuntu sudo apt-get --purge remove [package]