5

When we run let's say

dpkg -i some-package.deb

What is the sequence of the scripts(tasks) that run for the installation to complete?

From this, I understand that prerm, preinst, postinst, postrm are some of the scripts that get executed. I wanted to know what else is done other than this.

1

1 Answer 1

6

The Debian wiki page on Maintainer Scripts has flow charts describing all the possible cases. I won't copy all of them here, but here's one for example:

Upgrade of foo 1.2-3 (installed) to 1.2-4

This seems to be most complex example, but in any case, this margin would be too narrow to contain a description of all the possible cases in words. ;)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .