View previous topic :: View next topic |
Author |
Message |
jbiggs12 n00b
Joined: 09 Mar 2012 Posts: 29
|
Posted: Wed Mar 14, 2012 11:34 pm Post subject: Run command on package installation |
|
|
Hi,
I was wondering if it would be possible to run a program whenever portage installed a package à la apt hooks. I have a git repository in my /etc folder and I'd like it to update automatically whenever a package is installed. |
|
Back to top |
|
|
dol-sen Retired Dev
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
Posted: Thu Mar 15, 2012 4:48 am Post subject: |
|
|
What you want is to tie in to the emerge post_install hook.
It will be in /etc/portage/bashrc I think. (if I ever used it I'd remember more) I also can't seem to find the info in the man pages at the moment.
Check the forums, There have been threads about it already. So you should be able to find it somewhere. _________________ Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch... |
|
Back to top |
|
|
dol-sen Retired Dev
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|