View Full Version : HOWTO: Auto-Run prelink after all apt-get operations
intangible
July 1st, 2005, 05:44 PM
This assumes you already have prelink installed on your system.
If you have not set it up yet, follow this howto: 1971
Everyone knows the biggest problem with prelink is that it's possible after an update, your programs may be running with old prelinked settings, and you should run prelink after library updates; Well this howto automates that for you.
The following makes prelink run after every apt-get action (apt-get install, apt-get remove)
sudo gedit /etc/apt/apt.conf (the file may not exist yet)
DPkg::Post-Invoke {"echo Running prelink, please wait...;/etc/cron.daily/prelink";}
Viola! :)
That will also run inside synaptic, and should be ran by anything else that uses apt.
poofyhairguy
July 1st, 2005, 06:03 PM
Nice. Thats very much what YAST does.
This rocks!
gammyhand
July 5th, 2005, 02:42 PM
Nice. Thats very much what YAST does.
This rocks!
Fit! Very fit!
bored2k
July 5th, 2005, 02:54 PM
:D Marvelous. +2 points for horny dude !ª
geearf
July 14th, 2005, 02:29 PM
Hello,
isn't there a way to only prelink what's been installed ?
Cause a normal prelink is so long, i can't see myself waiting for it every time I install something.
Thanks,
bored2k
July 14th, 2005, 02:38 PM
Hello,
isn't there a way to only prelink what's been installed ?
Cause a normal prelink is so long, i can't see myself waiting for it every time I install something.
Thanks,
Prelink is only slow the first time. If you don't do a lot of changes, prelink will be really fast.
geearf
July 14th, 2005, 03:12 PM
ooh,
well i am trying to see that right now,
i've fulfilled a complete prelink (or i think so), and after installing bittornado i am doing it again, and you're right it was'nt that long :)
bored2k
July 14th, 2005, 03:24 PM
ooh,
well i am trying to see that right now,
i've fulfilled a complete prelink (or i think so), and after installing bittornado i am doing it again, and you're right it was'nt that long :)
Every 14 days you will get a "slow" prelink.
geearf
July 14th, 2005, 03:41 PM
Yes that i know, but i thought that running this command was always the long one, and the short one was with some more parameters or stuff to the prelink bin, well whatever .... :)
Kyral
July 14th, 2005, 03:49 PM
Imagine the prelink after upgrading to Breezy in Oct :P
McQuaid
July 14th, 2005, 04:50 PM
I've never played with prelinking yet. How do you deal with this if you occasionally compile software.
bored2k
July 14th, 2005, 05:06 PM
I've never played with prelinking yet. How do you deal with this if you occasionally compile software.
Every 14 your system prelinks automatically, but if you want to do it manually, you just run
/etc/cron.d/prelink I believe. Or just run prelink -amvR
geearf
July 14th, 2005, 07:58 PM
Well in fact it did not seem that good.
I use a lot kynaptic, i've installed a small package and the prelink went on for almost an hour till I shut it down to use kynaptic again.
So I really don't know, was it because of kynaptic ?
or because of the prelink?
henriquemaia
July 15th, 2005, 11:17 AM
Having followed both HowTos, everything worked fine.
Thanks a lot for this one!
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.