# tmpwatch for SLES 11 SP3?

**URL:** <https://forums.suse.com/t/tmpwatch-for-sles-11-sp3/27224>\
**Category:** SLES Configure-Administer\
**Created:** [July 8, 2015, 7:49pm UTC](https://forums.suse.com/t/tmpwatch-for-sles-11-sp3/27224 "2015-07-08T19:49:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ithawtewrong](https://avatars.discourse-cdn.com/v4/letter/i/b38774/32.png) [@ithawtewrong](https://forums.suse.com/u/ithawtewrong)\
**Post date:** [July 8, 2015, 7:49pm UTC](https://forums.suse.com/t/tmpwatch-for-sles-11-sp3/27224/1 "2015-07-08T19:49:17Z")

</div>

I checked the package list here:

[https://www.suse.com/LinuxPackages/packageRouter.jsp?product=server&version=11&service\_pack=sp3&architecture=x86\_64&package\_name=index\_all](https://www.suse.com/LinuxPackages/packageRouter.jsp?product=server&version=11&service_pack=sp3&architecture=x86_64&package_name=index_all)

I’m not seeing tmpwatch. Is there a package for SLES 11 SP3 that would accomplish the same thing?  
I just need a process to auto delete files in a directory after a certain time period. I suppose I could script something from scratch, but thought a package if one existed, would be better.

Thanks

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [July 9, 2015, 2:20am UTC](https://forums.suse.com/t/tmpwatch-for-sles-11-sp3/27224/2 "2015-07-09T02:20:09Z")

</div>

> [@](#):
>
> On Wed 08 Jul 2015 04:54:02 PM CDT, ithawtewrong wrote:
> 
> I checked the package list here:
> 
> [https://www.suse.com/LinuxPackages/packageRouter.jsp?product=server&version=11&service\_pack=sp3&architecture=x86\_64&package\_name=index\_all](https://www.suse.com/LinuxPackages/packageRouter.jsp?product=server&version=11&service_pack=sp3&architecture=x86_64&package_name=index_all)
> 
> I’m not seeing tmpwatch. Is there a package for SLES 11 SP3 that would  
> accomplish the same thing?  
> I just need a process to auto delete files in a directory after a  
> certain time period. I suppose I could script something from scratch,  
> but thought a package if one existed, would be better.
> 
> Thanks

Hi  
You can always grab the 2.11 src rpm and rebuild locally and install.  
all unsupported of course?  
[https://software.opensuse.org/package/tmpwatch?search\_term=tmpwatch](https://software.opensuse.org/package/tmpwatch?search_term=tmpwatch)

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel  
3.12.43-52.6-default If you find this post helpful and are logged into  
the web interface, please show your appreciation and click on the star  
below… Thanks!

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [July 9, 2015, 2:01pm UTC](https://forums.suse.com/t/tmpwatch-for-sles-11-sp3/27224/3 "2015-07-09T14:01:48Z")

</div>

On 08/07/2015 17:54, ithawtewrong wrote:  
[color=blue]

> I checked the package list here:
> 
> [https://www.suse.com/LinuxPackages/packageRouter.jsp?product=server&version=11&service\_pack=sp3&architecture=x86\_64&package\_name=index\_all](https://www.suse.com/LinuxPackages/packageRouter.jsp?product=server&version=11&service_pack=sp3&architecture=x86_64&package_name=index_all)
> 
> I’m not seeing tmpwatch. Is there a package for SLES 11 SP3 that would  
> accomplish the same thing?  
> I just need a process to auto delete files in a directory after a  
> certain time period. I suppose I could script something from scratch,  
> but thought a package if one existed, would be better.[/color]

Which directory do you want to clean up? You can achieve the above by  
configuring cron to clean up directories via /etc/sysconfig/cron without  
the need for tmpwatch. Settings to change in /etc/sysconfig/cron are  
MAX\_DAYS\_IN\_TMP, MAX\_DAYS\_IN\_LONG\_TMP, TMP\_DIRS\_TO\_CLEAR, and  
LONG\_TMP\_DIRS\_TO\_CLEAR.

## HTH.

Simon  
SUSE Knowledge Partner

* * *

## If you find this post helpful and are logged into the web interface, please show your appreciation and click on the star below. Thanks.
