Ubuntu Force Install / remove packages

apt-getPackage ManagementUbuntu


  • Autoclean clears out the local repository of retrieved package files.

    sudo apt-get autoclean 
  • Force installation/removal of packages. ☠Use with caution

    sudo apt-get --force-yes install <pkgname> 


    sudo apt-get --force-yes remove <pkgname> 

Also as always, you can use dpkg to install, remove and purge packages.

  • Install

    sudo dpkg -i <pkgname> 
  • Remove

    sudo dpkg -r <pkgname> 
  • Purge

    sudo dpkg -P <pkgname> 


Leave a Reply