I want to remove configuration files of a package (the system one at least), but avoid reinstalling the package because of its size. Basically I want to do this

sudo apt-get purge my-gigabyte-package
sudo apt-get --purge autoremove
sudo apt-get install my-gigabyte-package

but without reinstalling the package. I tried

sudo apt-get --purge install my-gigabyte-package
sudo apt-get --purge upgrade my-gigabyte-package
sudo apt-get --purge -f install my-gigabyte-package
sudo apt-get --purge --reinstall install my-gigabyte-package
sudo apt-get --purge check my-gigabyte-package

but as expected none of them worked.

Is there any option, how to achieve this?

  • 1
    Purge just removes/resets the packages config in /etc (see here. Note that it does remove the files in the user's home diretory, which most of the time are the issue. Which program(s) do you want 'purged'? – Wilf Mar 7 '15 at 17:05
  • LibreOffice with a huge amount of extensions. I don't want to reinstall it because of that huge amount of extensions. I don't remember, where I found most of them, but I need 99% of them – aleskva Mar 7 '15 at 17:08
  • apt-get purge with -s says 812 MB to be removed. With addition of apt-get --purge autoremove it could be more than 1 GB.. – aleskva Mar 7 '15 at 17:12
  • Why do you want to remove Libreoffice? If you want to remove you user's configuration of Libreoffice you can try moving/removing ~/.config/libreoffice (or ~/.libreoffice (can't remember)) to see if it does what you want. Note the packages might be cached (see this for where) so you might not have - does the option apt-get -s --reinstall install libreoffice* (without sudo) show antyhing need be downloaded? – Wilf Mar 7 '15 at 21:04
  • Sorry but there is a probably a easier way of fixing whatever your issue with Libreoffice is than purging and reinstalling it. – Wilf Mar 7 '15 at 21:08

Finally I just backuped extension list and I'll make clean installation. But if there will be any better solution, please write it here for next generations. Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.