updating LibreOffice (former OpenOffice) works like this:

1. remove the old version

2. download latest version https://www.libreoffice.org/

3. install the new version

RedHat Fedora CentOS7: rpm based distributions:

yum remove libreoffice*; # uninstall current version
wget http://mirror1.hs-esslingen.de/pub/Mirrors/tdf/libreoffice/stable/6.0.2/rpm/x86_64/LibreOffice_6.0.2_Linux_x86-64_rpm.tar.gz; # download
tar fxvz LibreOffice_6.0.2_Linux_x86-64_rpm.tar.gz; # unpack
cd LibreOffice_6.0.2.1_Linux_x86-64_rpm/RPMS;
rpm -i *.rpm; # install new version

Debian Ubuntu: deb based distributions:

apt-get --purge remove libreoffice*
apt-get clean; # optional: clean the package cache, free some disk space
apt-get autoremove;

wget http://mirror1.hs-esslingen.de/pub/Mirrors/tdf/libreoffice/stable/6.0.2/deb/x86_64/LibreOffice_6.0.2_Linux_x86-64_deb.tar.gz; # download
tar fxvz LibreOffice_6.0.2_Linux_x86-64_deb.tar.gz; # unpack
# change into subdirectory
dpkg -i *.deb; # install all packages