Unfortunately there is no way to do this in pacman directly. The easiest and cleanest way I found to do it is using a shell function for system upgrade. This is what I currently use http://pastebin.com/TVtG0NHK
Search Criteria
Package Details: mkinitcpio-dkms 1.1-2
Package Actions
| Package Base: | mkinitcpio-dkms |
|---|---|
| Description: | mkinitcpio hook to autoinstall dkms modules |
| Upstream URL: | http://linux.dell.com/dkms/ |
| Category: | system |
| Licenses: | |
| Submitter: | Corubba |
| Maintainer: | Corubba |
| Last Packager: | None |
| Votes: | 15 |
| First Submitted: | 2012-07-23 12:33 |
| Last Updated: | 2013-04-08 11:10 |
Latest Comments
Comment by Corubba
Comment by artiom
During system upgrade the kernel is upgraded before the headers, so when this hook is started it can no compile. Is there any way to install headers before kernel?
Comment by Corubba
Position doesn't matter here, because the hooks only runs on imagebuild but not runtime. I personally favour to add at the end.
Comment by sl1pkn07
in what position is need insert this hook?
HOOKS="base udev autodetect modconf block filesystems usbinput fsck"
greetings