I installed program from tar.gz as root in /opt. Now it treats /root/ as "home" directory. Did i make a mistake?

Ask Ubuntu Asked by new User on December 10, 2020

I hate to have those loose software pieces in ~/somesoftware/version etc.. so i wanted to install it to /opt directory running some installer. Eclipse java ide is the particular program in question. I extracted the archive in ~/Downloads and ran installer with sudo.
It works i think but something feels very wrong here, my guts tell me because it treats /root/ as home.

Also i unchecked all ‘add to start menu’ and ‘add to desktop’ because i thought its like windows add to favourites or sth and now i cant find it in all programs and it won’t run as a user from /opt? how do i uninstall this? Is deleting /opt/eclipse with rm -r enough? It doesnt have any uninstaller or anything i believe

One Answer

Is deleting /opt/eclipse with rm -r enough?


Mind though that if there is an uninstaller in /opt/eclipse/ you should prefer using that over using rm. Those script are text files so you can examine what it does and it might also undo settings.

and it won't run as a user from /opt?

That depends. Generally there is 1 command in /opt/ that triggers ownership where you can copy to a location in your PATH or create a simlink to.

For eclipse you should start it from your user and never with sudo or as root. Check, and if not set, as rwx on user and set to your user these 2 locations:


or change those inside Eclipse to point to your a directory in your home directory.

Correct answer by Rinzwind on December 10, 2020

Add your own answers!

Related Questions

What does mean DORMANT mode in ip link show wlan0?

2  Asked on January 17, 2021 by bob91


syslog: Failed start mount ZFS filesystems

1  Asked on January 17, 2021 by wvxvw


Good movie mp4 metadata editor?

6  Asked on January 16, 2021 by flame_phoenix


Ubuntu 20.04 freezes issue

1  Asked on January 16, 2021 by kai-yang


Choppy video playback on ubuntu

0  Asked on January 16, 2021 by felipe-mesquita


Bluetooth adapter not found ubuntu 20.04

0  Asked on January 16, 2021 by abu-b-kurian


Gnome3 Setup of Wacom Buttons in Ubuntu 19.10

1  Asked on January 16, 2021 by n8tron


Multi-Core Compression tools

9  Asked on January 16, 2021 by luis-alvarado


INITRAMFS installation error

1  Asked on January 16, 2021 by daniel-nolan


Tuxcut installed But not running

3  Asked on January 15, 2021 by jagdish-patil


High end VPS is Slow

0  Asked on January 15, 2021 by omer-younas


for Canon MF3010

2  Asked on January 14, 2021 by dimos


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP