You are not logged in.

#1 2004-03-02 19:20:45

linuxfool
Member
Registered: 2004-02-17
Posts: 14

Couple of pacman questions

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

#2 2004-03-02 23:38:45

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Couple of pacman questions

linuxfool wrote:

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

#3 2004-03-03 15:00:10

linuxfool
Member
Registered: 2004-02-17
Posts: 14

Re: Couple of pacman questions

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

#4 2004-03-03 18:38:57

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: Couple of pacman questions

Good idea. Well done! Cool.
8)


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

Board footer

Powered by FluxBB