ArticleslgStudy

computer science

Delta update

Delta update is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Delta update rather than just read about it. In short: A delta update is a software update that requires the user to download only those parts of the software's code that are new, or have been changed from their previous state, in contrast to having to download the entire program. The use of delta updates can save significant amounts of time and computing bandwidth.

Delta update — main illustration
Delta update — illustration

Key takeaways

  • Delta update belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Delta update to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Delta update from memory before moving on to harder problems.

Reference excerpt

A delta update is a software update that requires the user to download only those parts of the software's code that are new, or have been changed from their previous state, in contrast to having to download the entire program. The use of delta updates can save significant amounts of time and computing bandwidth. The name "delta" derives from the mathematical science use of the Greek letter delta, Δ or δ to denote change. Another name for the underlying technology is binary delta compression. In any case, the combination of the old version and the downloaded delta is used to reconstruct the new version. For information on the technology used to produce the differences, see data differencing.

Uses

Linux

Fedora Linux has supported binary delta updates by default using the yum presto plugin since June 2009. This is based on RPM Package Manager's deltarpm system (2004), which was in turn based on bsdiff. This functionality has been inherited by Fedora-derived operating systems, including RedHat Enterprise Linux and its variant, CentOS. From Fedora 40 onward, delta updates had been discontinued. openSUSE also uses delta-rpm's with its zypper manager. This is still in use, and the standard solution for the openSUSE Leap distribution today. A more primitive system, the SUSE patchrpm, worked by replacing changed files. A similar system for the dpkg-APT package manager system of Debian is debdelta (2006); despite an apparent halt on the homepage, its package repository as well as the source code remains actively maintained. debdelta is not installed by default and not many mirrors have been set up for it. A member of the developer team has proposed yet another format that integrates directly into the currently mirrored main repositories called patch debs in 2018. It is intended to have more integrity checks. A descendant of Debian, Ubuntu developers have tried many times to implement delta updates for their system. During 2006 they tried to create one, but were confronted with too many options and dropped the efforts. In 2011 they tried to just set up debdelta, but once again dropped the efforts in May of the same year. The Arch Linux package manager pacman used to support a form of delta updating using VCDIFF (xdelta). It was scrapped due to an arbitrary command execution vulnerability (CVE-2019-18183) due to a lack of string escaping.

Windows Windows Update has supported delta updates since Windows XP which are called express installation files. On redistributing updates, Windows Server Update Services has supported delta updates since Windows Server 2003.

FreeBSD FreeBSD has supported delta updates using portsnap since November 2005. Given FreeBSD's traditional stance of focusing on source code updates, no method of delta binary updates currently exists.

Google Google refers to delta updates as "smart updates." This has been implemented in Google's Android operating system devices that run on Android 2.3 or above. Google engineers have estimated that smart updates would be only about one third the size of a full update on average. App APK updates in Android's Play Store use bsdiff since 2016, an efficient delta update algorithm introduced in 2003. Google's open source project Chromium requires frequent updates to narrow the window of vulnerability. It uses a disassembly-based diffing algorithm called "courgette" to reduce diff size of two binary executable files, which reduces the diff patch from 6.7% (bsdiff) to 0.76% (bsdiff + courgette) for one version update. The technology helped Chrome to push its updates to 100% of users in less than 10 days.

Apple iOS Apple's iOS is also capable of delta updates for operating system and application updates to reduce bandwidth usage.

See also Data differencing Delta encoding

References

External links White paper for Microsoft's implementation of BDC technology Courgette, a compression algorithm designed at Google to reduce the size of Google Chrome updates

Worked examples

Example 1 — a first encounter with Delta update

Start with the simplest possible case. Write down what Delta update claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Delta update before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Delta update ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Delta update

In research
Delta update appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Delta update in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Delta update is common in secondary-school and first-year university syllabi. It links to neighbouring topics Installation software stubs, Software maintenance, so understanding it makes those chapters shorter.
In everyday life
Look for Delta update outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Delta update” →

How to study Delta update in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Delta update means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Delta update out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Delta update in simple terms?

A delta update is a software update that requires the user to download only those parts of the software's code that are new, or have been changed from their previous state, in contrast to having to download the entire program. The use of delta updates can save significant amounts of time and comput…

Why does Delta update matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Delta update?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Delta update.

Tags

  • Installation software stubs
  • Software maintenance

Keep exploring