Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nagiyevelchin/5d30be3f71cfe0058b44dafa6586cd69 to your computer and use it in GitHub Desktop.
Save nagiyevelchin/5d30be3f71cfe0058b44dafa6586cd69 to your computer and use it in GitHub Desktop.
Learn how to uninstall LibreOffice, remove residual files, add a PPA for LibreOffice, update your package list, and install LibreOffice on your Ubuntu system using these Bash commands.
# Remove LibreOffice and its components
sudo apt remove --purge libreoffice* -y
# Perform an autoremove to clean up unnecessary packages
sudo apt autoremove -y
# Run autoclean to remove old package files
sudo apt autoclean -y
# Add the LibreOffice PPA to get the latest version
sudo add-apt-repository ppa:libreoffice
# Update the package list to include the PPA
sudo apt update
# Install LibreOffice
sudo apt install libreoffice -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment