Чистка реестра wine linux

Wine registry in Linux

The Windows Registry is the internal database that contains all configuration settings for the software which is running on your system, as well as the operating system itself. Windows comes bundled with the Registry Editor (regedit), which lets you access and modify the Windows Registry.

If you’re running a Windows application in Linux through Wine, you’re essentially maintaining a (Windows) registry of the application itself.

Normally, users should never have to play with the registry. But with that said, sometimes there’s no other way to customize what you want. In this article, we will show you a few basic task with the Wine’s registry, including how to access it, how to backup software settings, etc.

Access Wine registry

Wine comes equipped with its own registry editor, which look and feel extremely similar to the Windows’s regedit.

In order to run Wine’s registry in GUI mode, run the following command in the terminal :

From here, you can navigate the registry database, modify keys and values, create new entries just like how you would do in Windows.

Backup Wine registry settings

All the registry settings in Wine is stored as text-based .reg files inside $WINEPREFIX/*.reg directory (usually /home/username/.wine ). If you want to preserve your settings across setups, you can backup those files into a safe place.

  1. Run wine regedit , navigate to whatever entry you want to make a backup of. Most of the time, the software settings are located inside HKEY_CURRENT_USERSoftware .
  2. Select the entry. Then choose Registry > Export Registry File to export the whole entry to a .reg file.
  3. Input the filename, for example, software.reg . Be sure to click the Selected Branch button before clicking OK.
  4. Restore the keys into the registry any time you want by running wine regedit software.reg . Alternatively, you can restore this .reg file on other system to clone the settings elsewhere.

Creating a new key in Wine registry

  1. Run wine regedit in any terminal window to open up Wine registry.
  2. Navigate the tree to where you need to add a new key. For example, HKEY_CURRENT_USERSoftwareGoogleChrome
  3. Select the section which you need to add the key to. Right click in the right pane and select New > Key.
  4. Input the name and value of the new key and click OK

Import .reg files to Wine registry

If you already have a .reg file which contains the settings you want to incorporate into Wine registry, you can import them with a single command :

wine start regedit.exe /path/to/file.reg

Remember to replace /path/to/file.reg with the actual path to your .reg files.

Alternatively, if you’ve installed Wine through PlayOnLinux, you can right-click the .reg file and select Open With Wine Registry Editor.

Читайте также:  Oracle linux package repository

We hope that this tutorial provides useful information to help you better understand the registry on Wine. There are other related guides that we’ve covered such as AutoCAD on Linux, is it possible?, Fix “Unable to correct problems, you have held broken packages” and Fix “bad CPU type in executable”.

If you spot any error in the article, or have a suggestion, please kindly let us know via the comment section below.

Leave a Comment Cancel reply

Hey! I’m Daan. I work as a SysAdmin in the Netherlands. Whenever I find free time, I write about IT, Linux, Open Source and hardware on this site.

VS Code Tutorials

  • Automatic code indentation
  • Comment out multiple lines
  • Quickly duplicate a line in VSCode
  • Create a comment block in VSCode
  • Show hidden files in VSCode
  • Quickly find a file in VSCode
  • How to delete the whole line in VSCode
  • Collapse code blocks in VSCode
  • Enable/disable word wrap in VSCode
  • Bind terminal commands to VSCode keyboard shortcuts
  • VSCode Command Palette
  • VSCode Format On Save
  • VSCode «go to definition» guide

Источник

Чистка реестра wine linux

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules

Level 1

Llewen Level 1
Posts: 9 Joined: Sun Apr 20, 2008 6:29 am

Cleaning up a WINE install.

Post by Llewen » Mon Apr 21, 2008 7:41 am

I was installing a game, and I made the mistake of agreeing to install
DirectX. I’m guessing this can screw up your WINE. Is there any way to
clean up my WINE after doing something like that without having to
reinstall all my software?

Moderator

vitamin Moderator
Posts: 6605 Joined: Sat Feb 23, 2008 2:29 pm

Re: Cleaning up a WINE install.

Post by vitamin » Mon Apr 21, 2008 8:53 am

Llewen wrote: I was installing a game, and I made the mistake of agreeing to install
DirectX. I’m guessing this can screw up your WINE. Is there any way to
clean up my WINE after doing something like that without having to
reinstall all my software?

Yes, all Wine files are kept in ~/.wine directory ($HOME/.wine). The only exceptions are desktop and menu entries. So to completely cleanup Wine you just need to remove the above directory with

Wine Developer

austin987 Wine Developer
Posts: 2383 Joined: Fri Feb 22, 2008 8:19 pm

Cleaning up a WINE install.

Post by austin987 » Mon Apr 21, 2008 10:03 am

I was installing a game, and I made the mistake of agreeing to install
DirectX. I’m guessing this can screw up your WINE. Is there any way to
clean up my WINE after doing something like that without having to
reinstall all my software?

Yes, all Wine files are kept in ~/.wine directory ($HOME/.wine). The only
exceptions are desktop and menu entries. So to completely cleanup Wine you
just need to remove the above directory with
Code:
rm -rf ~/.wine

Wine will recreate it if it does not exists.

Careful, however, as this will remove all installed software and settings

(in wine, not native linux apps). You can try:
$ wine uninstaller
But it doesn’t work too well currently, since other things are more
important to fix.
————— next part —————
An HTML attachment was scrubbed.
URL: http://www.winehq.org/pipermail/wine-us . chment.htm

Читайте также:  Добавление пользователя linux sudo

Cleaning up a WINE install.

Post by Marcel W. Wysocki » Mon Apr 21, 2008 10:58 am

I was installing a game, and I made the mistake of agreeing to install
DirectX. I’m guessing this can screw up your WINE. Is there any way to
clean up my WINE after doing something like that without having to
reinstall all my software?

You can try to remove .wine/drive_c/windows and .wine/drive_c/program files
and then run wineprefixcreate
perhaps that will help

Marcel W. Wysocki
————— next part —————
A non-text attachment was scrubbed.
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-us . chment.pgp

Moderator

vitamin Moderator
Posts: 6605 Joined: Sat Feb 23, 2008 2:29 pm

Re: Cleaning up a WINE install.

Post by vitamin » Mon Apr 21, 2008 12:07 pm

I was installing a game, and I made the mistake of agreeing to install
DirectX. I’m guessing this can screw up your WINE. Is there any way to
clean up my WINE after doing something like that without having to
reinstall all my software?

You can try to remove .wine/drive_c/windows and .wine/drive_c/program files
and then run wineprefixcreate
perhaps that will help

Marcel W. Wysocki

In case you didn’t know that is what ‘rm -rf ~/.wine’ does, plus few more helpful things. All in one command! Removing files without cleaning registry is WRONG and will harm even windows. It for sure _WILL_ break Wine or rather programs that see stuff in registry yet can’t find it on the disk.

Level 1

Llewen Level 1
Posts: 9 Joined: Sun Apr 20, 2008 6:29 am

Cleaning up a WINE install.

Post by Llewen » Mon Apr 21, 2008 12:58 pm

Cleaning up a WINE install.

Post by Marcel W. Wysocki » Mon Apr 21, 2008 2:53 pm

On Mon, 21 Apr 2008 09:40:24 -0300
Owen Stairs wrote:

I was installing a game, and I made the mistake of agreeing to install
DirectX. I’m guessing this can screw up your WINE. Is there any way to
clean up my WINE after doing something like that without having to
reinstall all my software?

You can try to remove .wine/drive_c/windows and .wine/drive_c/program files
and then run wineprefixcreate
perhaps that will help

Marcel W. Wysocki

In case you didn’t know that is what ‘rm -rf ~/.wine’ does, plus few more helpful things. All in one command! Removing files without cleaning registry is WRONG and will harm even windows. It for sure _WILL_ break Wine or rather programs that see stuff in registry yet can’t find it on the disk.

well, he didnt really want to remove all of his software installed
anyways..
for the registry stuff i use ccleaner (www.ccleaner.de)
its a nice tool to clean up the windows registry and even works great in wine

Moderator

vitamin Moderator
Posts: 6605 Joined: Sat Feb 23, 2008 2:29 pm

Re: Cleaning up a WINE install.

Post by vitamin » Mon Apr 21, 2008 3:46 pm

Marcel W. Wysocki wrote: for the registry stuff i use ccleaner (www.ccleaner.de)
its a nice tool to clean up the windows registry and even works great in wine

Читайте также:  Linux сделал исполняемым файл

I’d like you to show how well that «cleaner» removes Wine specific stuff? Or the invalid windows configuration?
Most of such «cleaners» will corrupt registry beyond repair or won’t do anything useful at all.

Cleaning up a WINE install.

Post by Marcel W. Wysocki » Mon Apr 21, 2008 4:07 pm

for the registry stuff i use ccleaner (www.ccleaner.de)
its a nice tool to clean up the windows registry and even works great in wine

I’d like you to show how well that «cleaner» removes Wine specific stuff? Or the invalid windows configuration?
Most of such «cleaners» will corrupt registry beyond repair or won’t do anything useful at all.

it works quite well here
it cleans registry entries for:
missing shared dlls
unused file extensions
activex and class issues
applications
fonts
application paths
help files
installers
obsolete software
run at startip
start menu ordering
mui chache

the only stuff it removed but shouldnt is the font stuff or sth but thats recreated once i run wine again (and might as well be disabled in the program)
so far it did not break any functionality here and did a great job keeping my registry clean after removing software when uninstaller failed


Marcel W. Wysocki
————— next part —————
A non-text attachment was scrubbed.
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-us . chment.pgp

Cleaning up a WINE install.

Post by Marcel W. Wysocki » Mon Apr 21, 2008 4:09 pm

for the registry stuff i use ccleaner (www.ccleaner.de)
its a nice tool to clean up the windows registry and even works great in wine

I’d like you to show how well that «cleaner» removes Wine specific stuff? Or the invalid windows configuration?
Most of such «cleaners» will corrupt registry beyond repair or won’t do anything useful at all.

i forgot to mention it has an english website as well
http://www.ccleaner.com/


Marcel W. Wysocki
————— next part —————
A non-text attachment was scrubbed.
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-us . chment.pgp

Moderator

dimesio Moderator
Posts: 13165 Joined: Tue Mar 25, 2008 10:30 pm

Re: Cleaning up a WINE install.

Post by dimesio » Mon Apr 21, 2008 8:11 pm

Marcel W. Wysocki wrote: for the registry stuff i use ccleaner (www.ccleaner.de)
its a nice tool to clean up the windows registry and even works great in wine

I’d like you to show how well that «cleaner» removes Wine specific stuff? Or the invalid windows configuration?
Most of such «cleaners» will corrupt registry beyond repair or won’t do anything useful at all.

I haven’t tried it in wine yet, but I have to say that CCleaner is the only program of its sort that I trust in Windows. (You’re right, most are useless or dangerous.) CCleaner shows the user a list of things it thinks should be deleted, along with the reason why it thinks they should be deleted. The user has the option to accept or reject any of the recommendations, so it should be safe for users who are paying attention to what they are doing. It’s rated platinum in the AppDB.

Источник

Оцените статью
Adblock
detector