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 > Redhat > Fedora Packaging

 
 
LinkBack Thread Tools
 
Old 02-09-2010, 12:59 PM
Ralf Corsepius
 
Default RFC: /var/cache/ should be deleted upon package removal

Hi,

The FHS describes the purpose of /var/cache as follows [1]:

<cite>
/var/cache : Application cache data
Purpose

/var/cache is intended for cached data from applications. Such data is
locally generated as a result of time-consuming I/O or calculation. The
application must be able to regenerate or restore the data. Unlike
/var/spool, the cached files can be deleted without data loss. The data
must remain valid between invocations of the application and rebooting
the system.

Files located under /var/cache may be expired in an application specific
manner, by the system administrator, or both. The application must
always be able to recover from manual deletion of these files (generally
because of a disk space shortage). No other requirements are made on the
data format of the cache directories.
</cite>


From this, I conclude that it should be "safe by definition" to remove
/var/cache/<dir> directories and/or files below such directories upon
final package removal.

ATM, none of the packages in Fedora using /var/cache/<dir> (e.g. yum,
mock, abrt) does so. This leads to /var/cache/ gradually filling up with
orphaned/unused files, e.g. when temporarily installing mock or abrt.

Thoughts?

Ralf


[1]
http://www.pathname.com/fhs/pub/fhs-2.3.html#VARCACHEAPPLICATIONCACHEDATA
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 02-09-2010, 02:44 PM
Ville Skyttä
 
Default RFC: /var/cache/ should be deleted upon package removal

On Tuesday 09 February 2010, Ralf Corsepius wrote:

> From this, I conclude that it should be "safe by definition" to remove
> /var/cache/<dir> directories and/or files below such directories upon
> final package removal.
>
> ATM, none of the packages in Fedora using /var/cache/<dir> (e.g. yum,
> mock, abrt) does so.

vdr-osdteletext does, but that's a drop in the ocean.

> This leads to /var/cache/ gradually filling up with
> orphaned/unused files, e.g. when temporarily installing mock or abrt.
>
> Thoughts?

FWIW, no objections to mandating removal of that stuff here.
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 

Thread Tools




All times are GMT. The time now is 11:32 PM.

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