Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can i uninstall a wine windows program that got installed to the root directory?

I am new to linux, and am having problems with the SUDO DNF INSTALL option. I understand it is meant to give root user privileges which are often needed for DNF INSTALL, but it seems to sometimes install stuff in the root directory that myself as a user has no access to unless I browse with something like SUDO NAUTILUS?

I installed WINE with SUDO DNF INSTALL WINE and all seemed well, apart from the .wine directory did not appear in my home directory. Later installing my first Windows program I did SUDO WINE <NAME OF .EXE TO INSTALL> and the Windows program seemed to just disappear! I got lots of SELinux warnings! Later I found it had appeared in my root directory where i had no access.

After learning my lesson i did WINE <NAME OF .EXE TO INSTALL> and it went right in my home directory which is great.

I did a SUDO WINE CONTROL and used the uninstall option to remove the program, it seemed to work.. but all the files are still there in root! What can I do to get rid of them?

I just read this article, it seems to say never use SUDO unless you have to, but it seems you always have to:

https://blog.explosionpills.com/dont-use-sudo-with-npm/

I just installed all these with SUDO in a bash script, was that a bad idea? I am sure the ones i tested needed the SUDO.

sudo dnf -y install ffmpeg-libs fuse-exfat wine gnome-tweak-tool firewall-config keepassx vlc filezilla chromium nodejs npm