FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 08-07-2012, 03:10 PM
Josh Kelley
 
Default Preserve files on .deb uninstall

I have a bit of an odd question.* I have several systems that have been depending on manually installed files, and I'd like to add those files to .debs that I maintain so that they'll be properly tracked.

However, to avoid breaking these systems by removing these files, I'd like for the files to be preserved even if the .debs are later downgraded or removed.


Is there a clean way of doing this?* So far, I've only been able to find two approaches:

* Mark the files as conffiles - Not what I'd want in this case, because the files aren't configuration files and should be automatically upgraded when packages are upgraded, I just don't want them automatically deleted when packages are removed.

* Some sort of hack in postrm that restores or rewrites the files - This seems like a hack, but I'll do it if I have to.

--
Josh Kelley
 
Old 08-07-2012, 06:30 PM
Andrei POPESCU
 
Default Preserve files on .deb uninstall

On Ma, 07 aug 12, 11:10:41, Josh Kelley wrote:
>
> * Mark the files as conffiles - Not what I'd want in this case, because the
> files aren't configuration files and should be automatically upgraded when
> packages are upgraded, I just don't want them automatically deleted when
> packages are removed.

But conffiles are automatically upgraded if you didn't modify them
locally.

Kind regards,
Andrei
--
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
 
Old 08-07-2012, 08:52 PM
Josh Kelley
 
Default Preserve files on .deb uninstall

On Tue, Aug 7, 2012 at 2:30 PM, Andrei POPESCU <andreimpopescu@gmail.com> wrote:

On Ma, 07 aug 12, 11:10:41, Josh Kelley wrote:

>

> * Mark the files as conffiles - Not what I'd want in this case, because the

> files aren't configuration files and should be automatically upgraded when

> packages are upgraded, I just don't want them automatically deleted when

> packages are removed.



But conffiles are automatically upgraded if you didn't modify them

locally.

I'm rather embarrassed that I missed that.* That should work well then.* Thank you for your help.

--
Josh Kelley
 

Thread Tools




All times are GMT. The time now is 10:05 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org