Editing scripts from packages safely (was Re: * Synchronizing clock to ntp.ubuntulinux.org... ??? [on breezy startup])
Derek Broughton
news at pointerstop.ca
Thu Aug 3 14:31:16 UTC 2006
Daniel Pittman wrote:
> "Joe(theWordy)Philbrook" <jtwdyp at ttlc.net> writes:
>> It would appear that on Aug 2, Derek Broughton did say:
>>
>>> The problem with moving any script is that it will tend to be
>>> reinstalled if the package is upgraded.
>>
>> That would be a pain...<sigh>
>
> Actually, it doesn't have to be. The dpkg system, which underlays
> Ubuntu packages, has good support for this.
>
> You can use the 'dpkg-divert' tool to "divert" files from packages to
> another location. This is used by some Ubuntu packages to extend the
> functionality of other packages, but you can use it yourself:
>
> sudo dpkg-divert --local --add /path/to/my/file
Thanks, Daniel - I knew there was something, but I couldn't remember it :-)
--
derek
More information about the kubuntu-users
mailing list