Packages in main and restricted are supported for 5 years in long term support (LTS) releases. Flavors generally support their packages for 3 years in LTS releases but there are exceptions. See the release notes for specific details.