You are not logged in.

#1 2003-09-21 16:44:43

marin_linuxer
Member
From: San Rafael, CA U.S.A.
Registered: 2003-09-03
Posts: 111
Website

Pacman -Syu as a CRON job?

OK, ... before the flames errupt ... I'm not managing any mission-critical systems.

My interest in 'pacman -Syu' as a CRON job is for personal and friend's systems.  I'm wondering if you could post your cron scripts as an example for me to learn from.  How to you prefer to set your pacman.conf for this sort of thing?

I'm mostly interested in the security benefits and new-features of using new/current packages by this automation.

Thanx.


-- Linux!  Isn't it time?

Offline

#2 2003-09-22 19:23:25

jlvsimoes
Member
From: portugal
Registered: 2002-12-23
Posts: 392
Website

Re: Pacman -Syu as a CRON job?

hum do you really need it to be that automatic ... dont you want to decide if you want need that upgrade dont you want to see the .pacsaves  automation. is evil tongue


-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GU/ d- s: a- C L U P+ L+++ E--- W+
N 0+ K- W-- !O !M V-- PS+ PE- V++ PGP T 5 Z+ R* TV+ B+
DI-- D- G-- e-- h! r++ z+ z*
------END GEEK CODE BLOCK------

Offline

#3 2003-09-23 09:36:20

Bobonov
Member
From: Roma - Italy
Registered: 2003-05-07
Posts: 295

Re: Pacman -Syu as a CRON job?

I higly suggest you to do not run pacman as cronjob, but anyway there is nothing particular to do.
At first ensure you have crond configured and running.
Then just go into /etc/
there are some directory with cron.[something]
chose with which frequency youw ant to run the cron job
then just create a file in the appropriate directory
For pacman it shoul look like

#!/bin/sh
pacman -Syu

I suggest you to use the

IgnorePkg = <package> [package]

in pacman config file in wich you specify wich package MUST NOT be update, for instance lilo.
Consider that and indiscriminate automatic updating can potentially leed to an unsuable system.

Offline

#4 2003-09-23 15:42:25

marin_linuxer
Member
From: San Rafael, CA U.S.A.
Registered: 2003-09-03
Posts: 111
Website

Re: Pacman -Syu as a CRON job?

Ok, thanx for the tips.

How do you force a 'Yes' answer during the upgrade to the questions Pacman may ask?


-- Linux!  Isn't it time?

Offline

#5 2003-09-23 15:45:43

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Pacman -Syu as a CRON job?

You're also going to have to make sure you get a 'Y' in there.  Otherwise it'll just sit there waiting for you saying "Are you sure you want to upgrade?"  Check out the program 'yes' to solve this.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#6 2003-09-23 19:23:28

marin_linuxer
Member
From: San Rafael, CA U.S.A.
Registered: 2003-09-03
Posts: 111
Website

Re: Pacman -Syu as a CRON job?

Thanx, again, for the tips.


-- Linux!  Isn't it time?

Offline

Board footer

Powered by FluxBB