I want to use Scratch 2 on raspbian. I googled and found that latest raspbian buster comes with Scratch 3 (which I don't want to use). Based on further searches, I have now downloaded raspbian Stretch (2019-04-08-raspbian-stretch).

If I install above raspbian image afresh, how can I have the latest OS updates (e.g. security fixes) but keep using Scratch 2. I mean will it automatically upgrade to buster?

PS: I want to use the offline and not the online version of scratch.

3 Answers 3


I don't know what Scratch version is available on what Raspbian version but from your question I assume only Scratch 3 is available from the repository of Raspbian Buster and only Scratch 2 is available from the repository of Raspbian Stretch. If you use Raspbian Stretch and only use its repository and install Scratch 2 from it then sudo apt update && sudo apt full-upgrade will do no harm and you should do it regulary. It only upgrades installed packages and keeps Scratch 2 up to date as long as Stretch is supported. If you want to mix up software packages from repositories you may have a look at pinning packages to avoid its upgrades.


See https://www.raspberrypi.org/blog/scratch-3-desktop-for-raspbian-on-raspberry-pi/

You can install ANY version of Scratch 1, 2 or 3 on Buster in Recommended Software.

You can also remove unwanted versions.

  • In current Raspberry Pi OS, only Scratch 3 is showing in recommended software. Oct 9, 2022 at 14:08

If you do apt-get upgrade it will be upgrade. So the answer is simple: Don't do that command.

The upgrade command simply selects everything that can be upgraded and upgrades them. If you pick and choose what to upgrade, you only get that.

If you use aptitude, you can "hold" the one you don't want to upgrade. While this isn't perfect, you can then do a limit (key lowercase L) like ~U !~ahold and it will show you everything that can be upgraded except those you have explicitly held.

  • and I won't get security updates without doing apt-get upgrade. right?
    – publicgk
    Feb 22, 2020 at 14:54
  • security update are not special in any way, except perhaps for coming from a security repository. You get them because you've installed the update of the relevant package, not from explicitly using the "upgrade" command. The point is, you NEVER need to do "apt-get upgrade". "apt-get update" (or equivalent) is another matter. It is about finding out what is available.
    – David G.
    Feb 22, 2020 at 14:59
  • 1
    well, I found this on the RPi website for updating/upgrading (apt-get upgrade): Generally speaking, doing this regularly will keep your installation up to date for the particular major Raspbian release you are using (e.g. Stretch). It will not update from one major release to another, for example, Stretch to Buster.
    – publicgk
    Feb 22, 2020 at 18:33
  • so I should hopefully be ok
    – publicgk
    Feb 22, 2020 at 18:34
  • 1
    @DavidG. Ignore the scratch website. run this on a RPi: apt search scratch --names-only. You will see thse packages: scratch, scratch2, and scratch3.
    – Botspot
    May 1, 2020 at 12:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.