Ask Your Question

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

asked 2016-09-02 12:38:23 -0500

David-LDA gravatar image

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:

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-09-02 13:00:40 -0500

fcomida gravatar image

You use sudo dnf install wine to install, well "wine" in your system. Then you use wine <winprogram.exe> as regular user to run a windows executable that could be an installer for a windows program. wine itself uses the .wine directory under regular user home directory to simulate a "fake" windows filesystem in linux. You can safely remove /root/.wine just be aware you must do it as "root".

edit flag offensive delete link more


Thanks :) If you could comment on the article I linked it would be very helpful, how should i know if I should be using sudo dnf install or dnf install?

David-LDA gravatar imageDavid-LDA ( 2016-09-02 14:05:37 -0500 )edit

Packages are installed systemwide hence you'll need "root privileges" --> sudo can be used for gaining such privileges. Programs installed/ran through wine are "local" to the user running wine, no need for sudo.

fcomida gravatar imagefcomida ( 2016-09-02 14:51:08 -0500 )edit

Question Tools


Asked: 2016-09-02 12:38:23 -0500

Seen: 529 times

Last updated: Sep 02 '16