You are not logged in.
1) is there a way to make pacman assume 'Yes' instead of prompting you for [Y/n]?
2) Is there a set of switches that can query the repository and report back what needs to be upgraded?
I have done a little digging, but haven't come up with solutions for doing these things yet.
Thanks for any input.
Offline
1) is there a way to make pacman assume 'Yes' instead of prompting you for [Y/n]?
yes | pacman -??
e.g. will answer "y[return]" to all questions pacman has (can be dangrous)
the other question with switches i dont understand fully, sorry my english... but if you run "pacman -Suy" it will check and report, what needs to be updated ... then simply say "n[return]" to not-update it
The impossible missions are the only ones which succeed.
Offline
Very helpful - thank you.
This is useful for me to cron.
for my shell, bash, I found to use
echo "n" | pacman -Syu | mail -s 'pacman host.domain' me@someplace.com
This leaves me a daily email message reporting what could be updated on a particular system.
Then I can ssh in and actually run pacman to do the update. If I want to run it unattended (i.e. the updates are simple ones) I can use...
echo "Y" | pacman -Syu -- and then go do something else for a few...
Again, thanks.
ns
Offline
Good idea. Well done! Cool.
8)
Frumpus ♥ addict
[mu'.krum.pus], [frum.pus]
Offline