Re: Freeing some partition space...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paul Howarth wrote:

On Wed, 2005-01-26 at 15:51 -0600, Gustavo Seabra wrote:


Paul Howarth wrote:


Fair enough; if you're a yum user, you may find that a significant space
saving can be made in /var by doing a "yum clean packages" periodically
(as root of course). I have a cron job to do this.



How do I set up this cron job? is it just writing a script and dumping it in a cron directory, like /etc/cron.weekly ?



All I did was, as root, run "crontab -e"; this pulls up your favourite editor (probably vi by default) with your current root crontab file, to which I appended the following line:

0 12 * * * /usr/bin/yum clean packages >/dev/null 2>&1

This runs the command "/usr/bin/yum clean packages" at twelve minutes
past midnight every day and discards any output it generates.

You can run "crontab -l" to list the crontab file for the current user,
and "crontab -e" to edit see. See "man crontab" for details of the
crontab command, and "man 5 crontab" for details of the file format.

Paul.


Thanks a lot!

--
----------------------------------
Gustavo Seabra - Graduate Student
Chemistry Department
Kansas State University
----------------------------------
If at first you don't succeed...
     ...skydiving is not for you.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux