The preinst script of the new package, because new filesĪre written at the same time old files are removed. Old files, so that if something goes wrong, they can beīefore the new installation, execute the postrm script of Unpack the new files, and at the same time back up the Run preinst script, if provided by the package. If another version of the same package was installedīefore the new installation, execute prerm script of the ![]() Installation consists of the following steps:Įxtract the control files of the new package. So the package's post-installation script consists of additional commands, updates etc. How will it disable it? The developers will add the command systemctl disable bar.service, which will disable the service, in the foo package's post-installation script. Let's say now that the package needs a service called bar to be disabled. For more info see the FAQ section.Īssume you're installing the package foo. So the post-installation of the package will tell GRUB that the kernel is installed by executing the commands update-grub and update-initramfs. deb file is complete, it needs to tell GRUB that the kernel is installed, so that you can boot into it. Assume you're installing a newer kernel. ![]() Let's understand it in a better way through an example: In other words, the script contains commands that should be executed after installation is complete. The name of the script itself says what it does.
0 Comments
Leave a Reply. |