How to Install uninstall application in Linux Mint | Ubuntu | without APT

Published: 19 June 2024
on channel: TutorKid's Dad
87
2

We have taken the example of OpenOffice here for installing and uninstalling OpenOffice (or similar packages) on Linux Mint and Ubuntu:

Installing OpenOffice (or similar packages) via .deb Packages

To install OpenOffice on Linux Mint using .deb packages, follow these steps. First, download the necessary .deb files from the official website. Then, navigate to the directory where the files are saved and use the dpkg command to install them. Finally, resolve any dependency issues that may arise. This method allows you to manually install software not available in the default repositories OR you want latest version.

To install OpenOffice (or similar packages) use sudo dpkg -i *.deb

Uninstalling OpenOffice Manually

Uninstalling OpenOffice manually involves removing its installation directory, desktop integration files, and symbolic links. This method is necessary if the software was not installed using a package manager like apt. Note that this process may leave behind residual files in your system, so additional cleanup might be required to completely remove all traces of the software.
-------------------------------------------------------------------------------------------------------------------------
If OpenOffice (OR ANY OTHER SUCH PROGRAM) was not installed via the package manager apt, it might have been installed using a downloaded .deb package or some other method. Here's a step-by-step guide to remove OpenOffice from Linux Mint:

Find the OpenOffice installation directory:
OpenOffice is typically installed in /opt if it was not installed via a package manager. You can check if it is installed there with:

ls /opt

If you see a directory related to OpenOffice (e.g., openoffice4), you can proceed to the next step.

Remove the OpenOffice installation directory:
Use the following command to remove the OpenOffice directory:

sudo rm -rf /opt/openoffice4

Replace openoffice4 with the actual directory name if it's different.

Remove desktop integration files:
If you created desktop integration files (like menu entries or shortcuts), you need to remove them. These files are typically located in /usr/share/applications. Find and remove any related files with:

sudo find /usr/share/applications -name "*openoffice*" -exec rm {} \;

Remove symbolic links:
OpenOffice might have created symbolic links in /usr/bin or /usr/local/bin. You can remove them with:

sudo find /usr/bin -lname "/opt/openoffice4/*" -exec rm {} \;
sudo find /usr/local/bin -lname "/opt/openoffice4/*" -exec rm {} \;

Remove any leftover configuration or user data files:
OpenOffice might have stored configuration files in your home directory. To remove them, use:

rm -rf ~/.openoffice

Update desktop database:
If you removed any desktop files, it is a good idea to update the desktop database with:

sudo update-desktop-database

-----------------------------------------------------------------------------------------------------------------------
#LinuxMint #OpenOffice #Installation #DebPackages #dpkg #TerminalCommands #ManualInstall #Uninstallation #ManualUninstall #TerminalCommands #Cleanup #RemoveSoftware


Watch video How to Install uninstall application in Linux Mint | Ubuntu | without APT online without registration, duration hours minute second in high quality. This video was added by user TutorKid's Dad 19 June 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 87 once and liked it 2 people.