1

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.

2

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.

1

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.

-1

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.

8
  • and I won't get security updates without doing apt-get upgrade. right? – publicgk Feb 22 '20 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 '20 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 '20 at 18:33
  • so I should hopefully be ok – publicgk Feb 22 '20 at 18:34
  • If you want to automatically switch debian/raspbian releases, configure to use "stable" or "testing" instead of "Stretch" or "Buster". – David G. Feb 25 '20 at 0:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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