Skip to content

Scimmia22/pachooks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NAME

pachooks - sample hooks for libalpm/pacman

DESCRIPTION

check-boot - check that /boot is mounted before trying to modify it
check-suid - print post-install warnings for suid/getcap binaries
info-install, info-remove - update info file database
snapshot-pre-snapper, snapshot-post-snapper - take filesystem snapshots
sync - sync storage caches to reduce the risk of file system corruption
update-desktop-database - update cache databse for .desktop files

HOOKS vs INSTALL SCRIPTS

Hooks and scripts each fill a different packaging niche. Install scripts are included directly in the package that runs them and are run immediately prior to installation or removal of the package. Hooks may be provided by any package, not necessarily the one(s) that trigger it, or the user and are run before or after the transaction. Hooks are generally preferable for any tasks that need to be repeated for a number of packages. Any essential tasks (e.g. rebuilding the initramfs after a kernel update) should either be run in a PreTransaction hook or continue to use an install script due to the risk of post-transaction hooks not running if the transaction is interrupted.

FILES

/usr/share/alpm/hooks.bin/ - executables to be used by hooks
/usr/share/alpm/hooks.local/ - inactive hooks for users to enable

COPYRIGHT AND LICENSE

Copyright 2015 Andrew Gregory <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

SEE ALSO

alpm-hooks(5)

About

Example hooks for pacman/libalpm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%