Sublime Forum

How do I disable automatic updates to packages?

#1

The package containing your active theme was updated… AWESOME… Now ive lost 100% of the customizations I made to that theme and have to start over.

How do i permanently disable all automatic updates of ANY package… I never want any kind of behind my back updates, had i known this was the default I would have changed it already. IF i cant disable automatic updates then I want to know how to remove package control from my installation… thou that would very much surprise me if automatic updates could not be disabled.

was able to find my edited theme under backups so did not actually lose them but still need to PERMANENTLY disable all automatic updates. < /edit>
1 Like

#2

If you select Preferences > Package Settings > Package Control > Settings - Default from the menu, Sublime will open up the default settings for Package Control. In the defaults, you will see this:

	// If packages should be automatically upgraded when ST starts
	"auto_upgrade": true,

To turn the setting off, you can pick Preferences > Package Settings > Package Control > Settings - User and add that setting to your custom preferences, setting the value to false instead.

Optionally you may also be interested in this setting:

	// Packages to not auto upgrade
	"auto_upgrade_ignore": [],

Adding packages to that setting in your custom settings will stop those particular packages from being automatically updated but allow other packages to upgrade automatically.

If you want to remove Package Control entirely:

  1. Add Package Control to the ignored_packages setting in your default preferences
  2. Select Preferences > Browse Packages
  3. Go up one directory level in the newly opened file browser and go into the Installed Packages folder
  4. Delete Package Control.sublime-package and 0_package_control_loader.subllime-package
  5. Remove Package Control from the ignored_packages setting
  6. Restart Sublime
4 Likes

#3

It seems strange to me that updates have deleted your edits. There is a Backup folder at the root of your Sublime folder (where Packages and Installed Packages folders are found), maybe you can find them there.

Moreover, if the theme was installed with Package Control, your edits could still be in your Packages folder, but in that case I don’t understand why you lost them. Maybe the theme has changed and the files you edited are still there, but they aren’t used anymore. Check your Packages directory.

For the future, if you want to avoid updates to single packages and not all of them, you can:

  1. open Package Control preferences and add your package to “ignore_vcs_packages”, packages there won’t be updated (I don’t know if it actually looks for vcs installed there, I don’t think so).

  2. install Local History that creates backups for your files.

1 Like

#4

One should never edit (files of) packages installed by Package Control directly. Either install such packages by hand so PC doesn’t handle them at all, or create modified files in your User package.

2 Likes