Results 1 to 9 of 9

Thread: Uninstalling double installation of Libreoffice...

  1. #1
    Join Date
    Apr 2007
    Beans
    534

    Uninstalling double installation of Libreoffice...

    Today I've installed Libreoffice via deb files, but then I realized I could install it via ppa, too - so I did...

    Its the new version 4.4.

    Now I would like to remove the version I installed using the deb files, but I'm not sure how to do it...

    Could anyone help?

  2. #2
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Uninstalling double installation of Libreoffice...

    How did you install the deb files?

    If with dpkg you will, I think, have to use dpkg to remove them as well.

    See man dpkg for more details and come back again if this is all gobbledegook to you.

  3. #3
    Join Date
    Apr 2007
    Beans
    534

    Re: Uninstalling double installation of Libreoffice...

    Yes, I did use the dpkg command, to be exact in terminal I went to the directory of the extracted tar.gz file, went to the debs directory and there I did
    Code:
    sudo dpkg -i *.deb
    I know that I could use the dpkg -r filename, but where will I find the files to remove?

    There is no record of these installed files in the /var/log/apt/history.log file, only the files installed with the use of the upgrade process of the Libreoffice ppa...
    Last edited by orange2k; February 7th, 2015 at 01:39 PM.

  4. #4
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Uninstalling double installation of Libreoffice...

    Quote Originally Posted by orange2k View Post
    Yes, I did use the dpkg command, to be exact in terminal I went to the directory of the extracted tar.gz file, went to the debs directory and there I did
    Code:
    sudo dpkg -i *.deb
    I know that I could use the dpkg -r filename, but where will I find the files to remove?

    There is no record of these installed files in the /var/log/apt/history.log file...
    That's because you installed them with dpkg, not using apt, so apt does not know about them.

    You need the list of packages installed and run
    Code:
    sudo dpkg --simulate -P packagename1 packagename2 packagename3
    to purge the installation, though I am not sure whether or not that will remove both versions; if it does you will need reinstall the repository version again.

    I used the --simulate option in that command as it will not actually do anything but will show you any likely problems. If that command runs and says it will purge the packages with no errors, run it again without the --simulate option to actually purge them, then reinstall from the repos if necessary. Your own configurations for LO will not be lost.

  5. #5
    Join Date
    Apr 2007
    Beans
    534

    Re: Uninstalling double installation of Libreoffice...

    I have no idea where to look for the packages...

    They aren't in the usr/bin directory...

    Or should I just purge everything that starts with Libreoffice?

  6. #6
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Uninstalling double installation of Libreoffice...

    Did the deb package carry a version number, like libreoffice-4.4? One might be called that and the other called simply libreoffice.

    You can use the locate command to find instances of libreoffice on your system. On my machine with stock libreoffice, the command "locate soffice | grep bin" returns
    Code:
    $ locate soffice | grep bin
    /usr/bin/soffice
    /usr/lib/libreoffice/program/soffice.bin
    Do you have multiple copies of soffice, maybe one in /usr/local/bin?
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  7. #7
    Join Date
    Apr 2007
    Beans
    534

    Re: Uninstalling double installation of Libreoffice...

    Problem solved...

    I used
    Code:
    sudo apt-get remove --purge libreoffice*
    sudo apt-get clean
    sudo apt-get autoremove
    and then I used

    Code:
    sudo apt-get install libreoffice
    to reinstall it again from the Libreoffice ppa...

  8. #8
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Uninstalling double installation of Libreoffice...

    I am not convinced that will have got rid of the LO version that you installed direct from the LO archive. If I remember correctly, that used to install the office-suite into /opt, so have a look there just to make sure you have only the one installation.

  9. #9
    Join Date
    Apr 2007
    Beans
    534

    Re: Uninstalling double installation of Libreoffice...

    It did remove Libreoffice entirely, there is no trace of the other installation as far as I can see...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •