You are not logged in.

#1 2010-01-13 23:03:40

xiaweitang
Member
Registered: 2010-01-03
Posts: 61

[SOLVED] How to run pacman -Syu at every shutdown or reboot?

I want to keep my system updated everytime I boot. Maby I can use an alias, but I dont' know how.

Last edited by xiaweitang (2010-01-17 21:28:22)

Offline

#2 2010-01-13 23:05:53

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] How to run pacman -Syu at every shutdown or reboot?

It's a bad idea to automate it.
This is one of the reasons: http://bbs.archlinux.org/viewtopic.php?id=57205


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2010-01-13 23:19:32

xiaweitang
Member
Registered: 2010-01-03
Posts: 61

Re: [SOLVED] How to run pacman -Syu at every shutdown or reboot?

Mr.Elendig wrote:

It's a bad idea to automate it.
This is one of the reasons: http://bbs.archlinux.org/viewtopic.php?id=57205

Thanks, that's very helpful. BTW, what's the proper way to do something automatically at shutdown or reboot or boot?

Offline

#4 2010-01-13 23:30:21

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] How to run pacman -Syu at every shutdown or reboot?

/etc/rc.local and/etc/rc.local.shutdown.

Offline

Board footer

Powered by FluxBB